Attachment | Size |
---|---|
example1.txt [6] | 17.99 KB |
SEM.R [7] | 2.95 KB |
example.pdf [8] | 98.36 KB |
Dear all, Please help me fixing this problem.
The data set has (please see example diagram)
+ 3 continuous variables(X1, X2, X3) for a latent variable (intercept)
+ 3 mediators (one binary X8 and two categorical variables X6, X7)
+ 1 dependent variable (X4).
This coding was based on the post about Categorical Data in both independent and dependent variables https://openmx.ssri.psu.edu/thread/3883
When I run SEM.R model I have following error message.
Error in mxRAMObjective(A = "A", S = "S", M = "M", thresholds = "Threshold") :
argument 'F' is not a string (the name of the 'F' matrix)
When I delete #Threshold matrix from the SEM.R, I have the following error message.
Error: The following error occurred while evaluating the subexpression 'Linear Growth Curve Model Path Specification.I
- Linear Growth Curve Model Path Specification.A
' during the evaluation of 'expVars' in model 'Linear Growth Curve Model Path Specification' : non-conformable arrays
Threshold matrix
mxMatrix(type = "Full", nrow = 1, ncol = 7, free = c(T, T, T, T, T, T, T),
values = c(-0.18173563, -1.27430357,-1.75717640, 0.37933827,-0.01542988, -0.82819033, -0.12312234), byrow = T, dimnames = list(c(), c("X1","X2","X3","X4","X6","X7","X8")),
name = "Threshold"),
Means and covaraince matrix
mxRAMObjective(A="A", S="S", M="M", thresholds = "Threshold")
I know you are busy! But I will return you back! I appreciate your time!
Hyoshin,
University of Maryland