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!
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.