Community Profile

photo

Wietze Zijpp


Last seen: 6 Monate ago Active since 2022

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


Warning: The assignment added rows to the table, but did not assign values to all of the table's existing
I have the following code that generates the Warning nmonths = 100; % use 100 months worth of data to estimate the betas for i...

6 Monate ago | 1 answer | 0

1

answer

Question


Converting a 100x3 matrix into a 100x30x3 matrix
Suppose I have a 100x3 matrix. Now I want to create a 100x30x3 matrix. I tried using repmat but cant seem to get the desired r...

6 Monate ago | 1 answer | 0

1

answer

Question


Continue running for loop for values that do not given an error
Suppose I have the following line of code Mdl_vol(1) = egarch('GARCHLags',1,'ARCHLags',1); Mdl_vol(2) = egarch('GARCHL...

6 Monate ago | 1 answer | 0

1

answer

Question


Getting the entry value (i,j) for the minimum value of reach row of a matrix
Suppose I have a matrix A = 3×3 11 13 15 12 14 16 32 18 21 How do I get the output (1,1) (2...

6 Monate ago | 2 answers | 0

2

answers

Question


Creating a nested loop
Suppose I want to generate a 2 x 9 matrix by looping the following code twice for j = 1:size(Mdl_vol,2) EstMdl = es...

6 Monate ago | 1 answer | 0

1

answer

Question


How to make a three dimensional matrix
Suppose I have the following function [G,Tstat,P] = Fama_MacBeth(X,Y) % Inputs: % X is the matrix of explenatory variables ...

6 Monate ago | 1 answer | 0

1

answer

Question


Error when increasing size of dependent variable linear regression
Suppose I have the following forloop which estimates parameters of a linear model count = 0; nmonth = 5; for j = 1:dimensions...

6 Monate ago | 0 answers | 0

0

answers

Question


Replacing a zero value of a matrix with the value left to it
Suppose I have a matrix A = 8 1 6 3 0 7 4 9 2 Now I would like the 0 value to be ...

6 Monate ago | 1 answer | 0

1

answer

Answered
Converge a 1x30 row vector to a 3x10 matrix
I have found the solution Use mymat = reshape(z,3,10)

6 Monate ago | 0

| accepted

Question


Converge a 1x30 row vector to a 3x10 matrix
Suppose I have the following z = [1:30] Now I want to create a 3x 10 matrix. Where the entries in the first row are the first ...

6 Monate ago | 1 answer | 0

1

answer

Question


Combining two for loops into a nested loop
Suppose I have a forloop that yields a 1x3 output for i = [1:3] % 3 months mdl = fitlm(X((30*i-30+1):i*30,:),Y((30*i-30+1)...

6 Monate ago | 1 answer | 0

1

answer

Question


Removing entire column if any of the value in that column contains a NaN
I am trying to clean up my dataset. Therfore I want to remove any columns that contain any Nan values. The dataset is of form t...

6 Monate ago | 1 answer | 0

1

answer

Question


Standard deviation of columns of a table
Suppose I have a 30x3 table. Now I would like to find the standard deviation of each column I tried stdev= std(montherrors(:,...

6 Monate ago | 1 answer | 0

1

answer

Question


Looping a regression for 30 different observations 10 times
Suppose I have a total of 300 observations. Now I would like to perform a regression over the observation 1:30 31:60 etc. And ...

6 Monate ago | 1 answer | 0

1

answer

Question


Calculating returns of a table structure and error operator '-' is not supported for operands of type 'table'.
I have stock prices for 100 firms over 5000 days. Yielding a table of 5000x1000 Now I proposed calculating the column of return...

6 Monate ago | 2 answers | 0

2

answers

Question


Converting location of a 2x3 vector into a matrix with value 1
Suppose I have a = 2×3 1 3 2 4 7 8 Now I want to create a matrix of dimension 10 x 1...

6 Monate ago | 4 answers | 0

4

answers