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 🙂
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,
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.
Thanks a lot for your answer, it really helps me.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.