BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi, i'm new to SAS and i could use some help for a problem.
I'm working on a sample of 2,500 subjects and I'd like to calculate
the mean of a variable X for my entire sample, adjusted for age,sex and another variable Y (knowing that age and Y are considered continuous).Is it possible to do such thing in SAS? I know how to obtain adjusted means with proc glm but across the categories of a categorical variable like:
proc glm data=table;
class x1;
model X=x1 x2 x3;
lsmeans x1;run;

My problem is to do the same but without having so called categorical variable...

Thanks a lot!!
AS Message was edited by: AS
3 REPLIES 3
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Suggest you have a look at the SAS support website http://support.sas.com/ and use the SEARCH facility, or consider using Google advanced search with the argument (site parameter in lowercase limits search to the SAS.COM site):

calculate adjusted mean site:sas.com


Scott Barry
SBBWorks, Inc.
deleted_user
Not applicable
Thanks Scott for your answer.
However I didn't find anything relevant. Everything is related to the obtention of adjusted means across categorical variables...
I'll keep looking.
AS
Paige
Quartz | Level 8
You have to set values for x1, x2, and my favorite, x3, and then generate a predicted value for X. Otherwise, your problem statement seems meaningless to me.
What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 2544 views
  • 0 likes
  • 3 in conversation