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!
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.