# NOT RUN {
m1 <- mxModel("test", type="RAM",
latentVars = "sex", manifestVars = "anxiety",
mxData(data.frame(sex=rbinom(10,1,.5), anxiety=rnorm(10)), 'raw'))
m1 <- setupExogenousCovariates(m1, 'sex', 'anxiety')
# }
Run the code above in your browser using DataLab