*Example 1: Basic Example (will have to set own file path *sem_sm2.dta can be downloaded from https://www.stata-press.com/data/r13/sem.html) use "\\Client\C$\Users\Mark.Williamson.2\Desktop\Williamson Data\STATA\sem_sm2.dta", clear ssd describe sem (Alien67 -> anomia67, ) (Alien67 -> pwless67, ) (Alien67 -> Alien71, ) (Alien71 -> anomia71, ) (Alien71 -> pwless71, ) (SES -> educ66, ) (SES -> occstat66, ) (SES -> Alien67, ) (SES -> Alien71, ), latent(Alien67 Alien71 SES ) nocapslatent estat mindices sem (anomia67 pwless67 <- Alien67) (anomia71 pwless71 <-Alien71) (Alien67 <-SES) (Alien67 <- SES) (Alien71 <-Alien67 SES) (SES ->educ occstat66) , cov(e.anomia67*e.anomia71) cov(e.pwless67*e.pwless71) nolog *Example 2: Stata Manual Example 1 use http://www.stata-press.com/data/r13/sem_1fmm summarize notes sem (x1 x2 x3 x4 <- X) *Example 2: Stata Manual Example 1 use http://www.stata-press.com/data/r13/sem_2fmm ssd describe notes sem (Affective -> a1 a2 a3 a4 a5) (Cognitive -> c1 c2 c3 c4 c5) sem, standardized estat eqgof estat gof, stats(all) estat mindices sem (Affective -> a1 a2 a3 a4 a5) (Cognitive -> c1 c2 c3 c4 c5), cov(Affective*Cognitive@0)