BookmarkSubscribeRSS Feed
Anonym432
Calcite | Level 5

I would like to know how to extract statistics related to wald-test results ("estimate" part in the below SAS codes) when I run an OLS or logistic regression using SURVEYREG or SURVEYLOGITIC. As you know, I am able to extract other statistics (e.g. ParameterEstimates, NObs, FItStatistics) from the ODS Output. But, I don'k now how to extract wald statistics (chisq or t-stat) and its related p-value. Please help me if there is anybody knowing this. Thank you in advance.

 

proc surveylogistic data= data;
model dep (descending) = indep1 Dummy  Indep1 *Dummy   /rsquare;
ods output ParameterEstimates= output NObs = NObs Fitstatistics= Fitstat;
estimate Indep1 1 Indep1 *Dummy 1;
run;

 

proc surveyreg data= &data;
model dep= indep1 Dummy  Indep1 *Dummy  /adjrsq solution;
ods output ParameterEstimates= &output datasummary = Summary fitstatistics= FitStat; ;;
estimate Indep1 1 Indep1 *Dummy 1;
run;

 

 

1 REPLY 1
Oligolas
Barite | Level 11

Hi,

not sure I understood it right.

if this isn't what you are looking for, please provide some picture of what you want using a dataset we can run on our machine.

 

   ods select none;
   ods output globalTests=gt;
   proc surveylogistic data= sashelp.class;
      model age (descending) = weight height weight*height/rsquare;
      ods output ParameterEstimates= output NObs = NObs Fitstatistics= Fitstat;
      estimate weight 1 weight*height 1;
   run;
   ods output close;
   ods select all;

   data gt;
      set gt;
      where test eq 'Wald';
   run;

Cheers

________________________

- Cheers -

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 1 reply
  • 735 views
  • 0 likes
  • 2 in conversation