Error using regstats (RESPONSES and DATA must have the same number of rows)
Show older comments
Hello!
I must deliver the code for an Econometrics exam and everything is running smoothly except for the following error:
Error using regstats
RESPONSES and DATA must have the same number of rows.
Error in FinancialEconometrics_Homework (line 515)
out=regstats(PInde(:,i),F);
that refers to this part of the code:
out=regstats(PInde(:,i),F);
APToutBtM(i,1:6)=out.beta';
APToutBtM(i,7:12)=out.tstat.t';
APToutBtM(i,13)=out.adjrsquare;
APTresBtM(:,i)=out.r;
I don't know how to solve the problem.
PInde is a 97x25 double matrix and F is a 403x5 double matrix.
Could you please help me?
Thank you
Accepted Answer
More Answers (1)
FEDERICA
on 8 Mar 2024
0 votes
Categories
Find more on Financial Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!