Dear all,
I enclosed a program which simulate regressions
that you can try to run.
I succeeded in calculating the coefficient matrix of the regression (b).
but when I try to calculate the residuals I get just one column in the matrix that is correct but the other columns are with ones (1).
so the std of the residuals is also is not correct. (bolded with blue colour in the program)
I don't understand why that happens..
Who can help?
Many thanks...
Move the initialization of RESID and STDRESID outside of the DO loop for J.
Move the initialization of RESID and STDRESID outside of the DO loop for J.
Rick, thank you!
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.