Hi everyone,
In a few links of my structural equation model (SEM), I seek to adjust or control for individual age (continuous), education attainment (ordinal with 5 categories), and race (nominal with 3 categories). I've read elsewhere online that the categorical variables (i.e., education and race) will need to be recoded and entered as dummy (binary) variables. Is that really the case? Or could they be entered directly into the SEM command?
For example:
where
DV = dependent variable (outcome of interest, continuous)
IV = independent variable (primary predictor, also continuous)
Thanks,
Michael
In a few links of my structural equation model (SEM), I seek to adjust or control for individual age (continuous), education attainment (ordinal with 5 categories), and race (nominal with 3 categories). I've read elsewhere online that the categorical variables (i.e., education and race) will need to be recoded and entered as dummy (binary) variables. Is that really the case? Or could they be entered directly into the SEM command?
For example:
Code:
sem (DV <- IV age i.educ i.race) /// ...{I'm omitting the measurement component of the syntax}
DV = dependent variable (outcome of interest, continuous)
IV = independent variable (primary predictor, also continuous)
Thanks,
Michael
Comment