Hello everyone,
I am new to Stata (19).
I want to specify a second-order model with the syntax not diagram.
In this model I want to fix to 1 the variance of the first-order factors (A,B,C, D in my syntax) as well as that of the second-order factor (F) instead of fixing to 1 a path from F to A to as well the path of an observed variable within each first-order factors (standard constraints).
In other word would to fix to 1 the variance of the first-order factors (A,B,C, D in my syntax) as well as that of the second-order factor (F) and thus overriding the standard constraints.
I manage to do it for the second order factor typing var (F@1).
It does not work, however, for my first-order factors. If I type "var(A@1) for example I got an error message.
Can anyone help me with this problem ?
Thanks in advance.
Hereunder is my syntax :
clear all
ssd init x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12
ssd set obs 2000
ssd set cov (ltd) 1 .02 1 .02 .02 1 .01 .01 .01 1 .01 .01 .01 .02 1 .01 .01 .01 .02 .02 1 .01 .01 .01 .01 .01 .01 1 .01 .01 .01 .01 .01 .01 .02 1 .01 .01 .01 .01 .01 .01 .02 .02 1 .01 .01 .01 .01 .01 .01 .01 .01 .01 1 .01 .01 .01 .01 .01 .01 .01 .01 .01 .02 1 .01 .01 .01 .01 .01 .01 .01 .01 .01 .02 .02 1
. sem (A->x1 x2 x3) (B->x4 x5 x6) (C->x7 x8 x9) (D->x10 x11 x12) (A B C D<-F), var (F@1)
I am new to Stata (19).
I want to specify a second-order model with the syntax not diagram.
In this model I want to fix to 1 the variance of the first-order factors (A,B,C, D in my syntax) as well as that of the second-order factor (F) instead of fixing to 1 a path from F to A to as well the path of an observed variable within each first-order factors (standard constraints).
In other word would to fix to 1 the variance of the first-order factors (A,B,C, D in my syntax) as well as that of the second-order factor (F) and thus overriding the standard constraints.
I manage to do it for the second order factor typing var (F@1).
It does not work, however, for my first-order factors. If I type "var(A@1) for example I got an error message.
Can anyone help me with this problem ?
Thanks in advance.
Hereunder is my syntax :
clear all
ssd init x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12
ssd set obs 2000
ssd set cov (ltd) 1 .02 1 .02 .02 1 .01 .01 .01 1 .01 .01 .01 .02 1 .01 .01 .01 .02 .02 1 .01 .01 .01 .01 .01 .01 1 .01 .01 .01 .01 .01 .01 .02 1 .01 .01 .01 .01 .01 .01 .02 .02 1 .01 .01 .01 .01 .01 .01 .01 .01 .01 1 .01 .01 .01 .01 .01 .01 .01 .01 .01 .02 1 .01 .01 .01 .01 .01 .01 .01 .01 .01 .02 .02 1
. sem (A->x1 x2 x3) (B->x4 x5 x6) (C->x7 x8 x9) (D->x10 x11 x12) (A B C D<-F), var (F@1)
Comment