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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1842 views
  • 0 likes
  • 3 in conversation