BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Jonate_H
Quartz | Level 8

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!

1 ACCEPTED SOLUTION

Accepted Solutions
PGStats
Opal | Level 21

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

PG

View solution in original post

4 REPLIES 4
PGStats
Opal | Level 21

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

PG
Jonate_H
Quartz | Level 8

Thank you, PG!

PGStats
Opal | Level 21

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

PG
Jonate_H
Quartz | Level 8

Problem solved, thanks!

sas-innovate-2024.png

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.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1212 views
  • 3 likes
  • 2 in conversation