I run the following regression with heteroscedasticity test.
The 'tableout' option only output normal standard error to 'want'.
1) Is there any other option to make it also output the white error?
proc reg data=have outest=want tableout;
model y = x1 x2 / spec white;
run;
2)When I use ODS to save HTML outputs (SAS 9.3), charts for "fit diagnostics for dependant variable" and "residual by regressors for dependant variable" will no longe be available. Do I need to add other options to make those charts available in the html file which I save to the local driver?
ods html file='c:\research\reg_out.html';
proc reg data=have outest=want tableout;
model y = x1 x2 / spec white;
run;
ods html close;
Thank you again as always!
For question 2, try this instead :
ods html path='c:\research' file='reg_out.html';
proc reg data=have outest=want tableout;
model y = x1 x2 / spec white;
run;
ods html close;
PG
Any tabular output can be directed to a dataset with ODS OUTPUT statements. The table names (such as SpecTest in this case) are listed in the Details section of the procedure documentation.
Add statement :
ods output SpecTest=mySpecTest;
before the run statement. Dataset mySpecTest will contain the test results.
PG
Thank you, PG!
For question 2, try this instead :
ods html path='c:\research' file='reg_out.html';
proc reg data=have outest=want tableout;
model y = x1 x2 / spec white;
run;
ods html close;
PG
Problem solved, thanks!
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.