Dear all,
I am new to Stata.
I am trying to run a confirmatory tetrad analysis using Bauldry and Bollen macro.
Unfortunately, I got the following error message testing their macro. Can anyone help me with this problem. I put my syntax below.
Many thanks in advance.
. . qui sem estat framework, fitted
variable estat not found;
Perhaps you meant 'estat' to specify a latent variable.
For 'estat' to be a valid latent variable specification, 'estat' must begin with a capital letter.
r(111);
. . mat sigma1 = r (Sigma)
r not found
r(111);
My syntax :
net install tetrad, from(https://github.com/sbauldry/tetrad/raw/master) replace
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) (x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12<-F), var (F@1 A@1 B@1 C@1 D@1) covariance (A*B@0 A*C@0 A*D@0 B*C@0 B*D@0 C*D@0) covariance (A*F@0 B*F@0 C*F@0 D*F@0)
. estat framework
. qui sem (A->x1 x2 x3) (B->x4 x5 x6) (C->x7 x8 x9) (D->x10 x11 x12) (x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12<-F), var (F@1 A@1 B@1 C@1 D@1) covariance (A*B@0 A*C@0 A*D@0 B*C@0 B*D@0 C*D@0) covariance (A*F@0 B*F@0 C*F@0 D*F@0)
. qui sem estat framework, fitted
. mat sigma1 = r (Sigma)
I am new to Stata.
I am trying to run a confirmatory tetrad analysis using Bauldry and Bollen macro.
Unfortunately, I got the following error message testing their macro. Can anyone help me with this problem. I put my syntax below.
Many thanks in advance.
. . qui sem estat framework, fitted
variable estat not found;
Perhaps you meant 'estat' to specify a latent variable.
For 'estat' to be a valid latent variable specification, 'estat' must begin with a capital letter.
r(111);
. . mat sigma1 = r (Sigma)
r not found
r(111);
My syntax :
net install tetrad, from(https://github.com/sbauldry/tetrad/raw/master) replace
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) (x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12<-F), var (F@1 A@1 B@1 C@1 D@1) covariance (A*B@0 A*C@0 A*D@0 B*C@0 B*D@0 C*D@0) covariance (A*F@0 B*F@0 C*F@0 D*F@0)
. estat framework
. qui sem (A->x1 x2 x3) (B->x4 x5 x6) (C->x7 x8 x9) (D->x10 x11 x12) (x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12<-F), var (F@1 A@1 B@1 C@1 D@1) covariance (A*B@0 A*C@0 A*D@0 B*C@0 B*D@0 C*D@0) covariance (A*F@0 B*F@0 C*F@0 D*F@0)
. qui sem estat framework, fitted
. mat sigma1 = r (Sigma)
Comment