☑ This topic is solved.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 11-03-2022 12:40 PM
(683 views)
Hi all,
I am trying to get the adjusted model, and LS means for my intervention and comparison group. I get this ERROR: Effects used in the LSMEANS statement must have appeared previously in the MODEL statement.
Here is a sample code:
proc glm data=have;
class ID;
model diff= childage childsex income c_race c_ethnicity/SOLUTION;
lsmeans ID;
run;
quit;
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
ID has to be listed in the MODEL statement, and in the CLASS statement.
--
Paige Miller
Paige Miller
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
ID has to be listed in the MODEL statement, and in the CLASS statement.
--
Paige Miller
Paige Miller
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
That worked, thanks!