Displaying 2 results from an estimated 2 matches for "alc1".
Did you mean:
acc1
2010 Mar 02
1
sem package and growth curves
I have been working through the book "Applied longitudinal data analysis: modeling change and event occurrence" by Judith D. Singer and John B. Willett. I have been working examples using SAS and also using it as an opportunity for learning to use R for statistical analysis.
I ran into some difficulties in chapter 8 which deals with using structural equation modeling. I have tried to
2007 Jan 24
1
solving a structural equation model using sem or other package
...ersity Press, 2003" using R. I have the SAS code and S-Plus code from the UCLA site (doesn't include chapter 8 or later problems). In chapter 8, there is a structural equation/path model which can be specified for the sem package as follows
S <- cov(al2) #al2 contains the variables alc1, alc2, alc3, and cons
N <- 1122
modelA.ram <- specify.model()
f1 -> alc1, NA, 1
f1 -> alc2, NA, 1
f1 -> alc3, NA, 1
f2 -> alc1, NA, 0
f2 -> alc2, NA, .75
f2 -> alc3, NA, 1.75
cons -> f1, p0, 1
cons -> f2, p1, 1...