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!
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.