BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
yael
Quartz | Level 8

Hello

 

I am writing after trying to understand it but I am not sure with what I found so decided to ask here.

 

I want to use PROC MIXED as I have fixed effect and also random effects in my model. Which statement in SAS reprents the CONTROL VARIABLES in my model? is this the CLASS statement?

 

Thanks for any help 🙂

1 ACCEPTED SOLUTION

Accepted Solutions
Doc_Duke
Rhodochrosite | Level 12

Yael,

 

Questions like this are better suited for the Statistical Procedures forum.

 

You should start by reading the entire chapter on PROC MIXED.  The CLASS statement is for identifying variables that are represented by levels (e.g. race) rather than on a continuium (e.g. age); this is the way that the CLASS statement is used in all of the SAS stat procedures.

 

"Control" variables are another type of independent variable.  The SAS procedures don't treat them any differently, but the analyst thinks about them differently.  I see the term most often in epidemiology.  They are usually independent variables that effect the outcome but aren't the topic of interest in the analysis (e.g. In a general regression framework, someone might want to "examine the effect of BP on heart rate controlling for age.").  In MIXED, most control variables are fixed effects.

View solution in original post

2 REPLIES 2
Doc_Duke
Rhodochrosite | Level 12

Yael,

 

Questions like this are better suited for the Statistical Procedures forum.

 

You should start by reading the entire chapter on PROC MIXED.  The CLASS statement is for identifying variables that are represented by levels (e.g. race) rather than on a continuium (e.g. age); this is the way that the CLASS statement is used in all of the SAS stat procedures.

 

"Control" variables are another type of independent variable.  The SAS procedures don't treat them any differently, but the analyst thinks about them differently.  I see the term most often in epidemiology.  They are usually independent variables that effect the outcome but aren't the topic of interest in the analysis (e.g. In a general regression framework, someone might want to "examine the effect of BP on heart rate controlling for age.").  In MIXED, most control variables are fixed effects.

yael
Quartz | Level 8

Thanks a lot for your answer, it really helps 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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 2 replies
  • 1899 views
  • 0 likes
  • 2 in conversation