Help using Base SAS procedures

adjusted mean HELP

Reply
N/A
Posts: 0

adjusted mean HELP

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
Super Contributor
Super Contributor
Posts: 3,174

Re: adjusted mean HELP

Posted in reply to deleted_user
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.
N/A
Posts: 0

Re: adjusted mean HELP

Posted in reply to deleted_user
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
Super Contributor
Posts: 281

Re: adjusted mean HELP

Posted in reply to deleted_user
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.
Ask a Question
Discussion stats
  • 3 replies
  • 129 views
  • 0 likes
  • 3 in conversation