Any options to output robust standard error?

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 130
Accepted Solution

Any options to output robust standard error?

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!


Accepted Solutions
Solution
‎04-20-2014 12:09 AM
Respected Advisor
Posts: 4,644

Re: Any options to output robust standard error?

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


All Replies
Respected Advisor
Posts: 4,644

Re: Any options to output robust standard error?

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
Frequent Contributor
Posts: 130

Re: Any options to output robust standard error?

Thank you, PG!

Solution
‎04-20-2014 12:09 AM
Respected Advisor
Posts: 4,644

Re: Any options to output robust standard error?

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
Frequent Contributor
Posts: 130

Re: Any options to output robust standard error?

Problem solved, thanks!

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

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