Help using Base SAS procedures

URGENT: A problem with PROC SURVEYREG

Reply
Contributor ZC
Contributor
Posts: 21

URGENT: A problem with PROC SURVEYREG

Hi,

I would like to obtain the means for males and females, respectively, after adjusting for year. I have run the following syntax in SAS but in the log window the system indicates to the lsmeans statement that "Statement is not valid or it is used out of proper order". Could anyone please fix this problem for me? Thanks,

".

proc surveyreg data = aa;

      class gender;

      strata bb;

      cluster cc;

      weight dd;

      model ee = gender year/solution;

      lsmeans gender;

run;

Super User
Posts: 11,343

Re: A problem with PROC SURVEYREG

SAS usually puts the offending line above such warnings. It will be helpful in the future if you post the LOG section as well.

Ask a Question
Discussion stats
  • 1 reply
  • 162 views
  • 0 likes
  • 2 in conversation