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

Hi Madam/Sir,

 

In the SAS 9.2, the output of "proc surveylogistic" generates wald chi-square statistics. But in the SAS 9.4, it generates t-statistics.

 In the SAS 9.4, proc logistic still generates wald ch-square statistics. But I need to use proc surveylogstic to do firm-level clustering in the standard variation of variables. Is there a way to report wald chi-square statistics? Your help will be highly appreciated. Joon.

 

proc surveylogistic data=s19;
class gvkey;
model gc(descending) = sdd1 starmeasure lev chlev lnage return beta sd_residual zscore lnasset
ploss investment ffinancing ocf reportlag big4 y2001-y2016 id1-id65/stb;
run;

Analysis of Maximum Likelihood EstimatesParameter Estimate StandardError t Value Pr > |t| StandardizedEstimateInterceptsdd1starmeasurelevchlev
-6.69600.9303-7.20<.0001 
1.38630.22356.20<.00010.2345
1.04220.29313.560.00040.2327
0.67870.20853.260.00110.1338
0.58720.38051.540.12290.0683
1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

tables is not a valid statement in proc surceylogistic. I suggest you also study the documentation for the MODEL statement, which includes:

Note that unless you specify the DF=INFINITY option, PROC SURVEYLOGISTIC displays an F test instead of a chi-square test.

View solution in original post

3 REPLIES 3
joon1
Quartz | Level 8
Hi Unison,

Thank you for your prompt response
I had a following error message. Could you please help me out to fix this
error?
1427 proc surveylogistic data=s19 ;
1428 tables wchisq;
------
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
1429 class gvkey;
1430 model gc(descending) = sdd1 starmeasure lev chlev lnage return beta
sd_residual zscore
1430! lnasset
1431 ploss investment ffinancing ocf reportlag big4 y2001-y2016
id1-id65/wchisq;
1432 run;

Thanks again

Sincerely,
Joon1
Kurt_Bremser
Super User

tables is not a valid statement in proc surceylogistic. I suggest you also study the documentation for the MODEL statement, which includes:

Note that unless you specify the DF=INFINITY option, PROC SURVEYLOGISTIC displays an F test instead of a chi-square test.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1099 views
  • 1 like
  • 3 in conversation