Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- SAS Procedures
- /
- adjusted mean HELP

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

03-07-2009 08:13 PM

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

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to deleted_user

03-08-2009 10:37 AM

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.

calculate adjusted mean site:sas.com

Scott Barry

SBBWorks, Inc.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to deleted_user

03-09-2009 12:35 PM

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

However I didn't find anything relevant. Everything is related to the obtention of adjusted means across categorical variables...

I'll keep looking.

AS

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

Posted in reply to deleted_user

03-09-2009 04:09 PM

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.