I am tring to conduct a fitlm equation on two data sets. One is F which is my independant variables and the other is Rdec which is my dependant variable. I am using the equation:
for i=1:funds;
mdl=fitlm(F,Rdec(:,i));
alpha(i,:)=mdl.Coefficients.Estimate(1)
talpha(i,:)=mdl.Coefficients.tStat(1)
end;
But getting results full of NaN's. My Rdec contains cells that are NaN and I cannot figure out how to remove them, could this be the problem? Is it due to the difference in the size of F and Rdec? Or do I have to define certain parts of the equation before I try compute it?
Thanks
2 Comments
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/669153-fitlm-and-regression-equations#comment_1171103
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/669153-fitlm-and-regression-equations#comment_1171103
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/669153-fitlm-and-regression-equations#comment_1171113
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/669153-fitlm-and-regression-equations#comment_1171113
Sign in to comment.