I'm doing a mediation test with generalized structural equation modeling (gsem). My code looks like this:
I get the following error:
What am I doing wrong?
UPDATE: I see something in the Stata documentation:
Does that mean I simply can't do what I'm trying to do in Stata?
Code:
local cov "age46 female i.region urbanicity" xi: svy: gsem (foreign_born hhinc_continuous `cov' -> DSM_every12, logit) /// (foreign_born `cov' -> hhinc_continuous) /// (2: Black_CaribbeanOrigin -> hhinc_continuous) /// (2: Black_CaribbeanOrigin -> DSM_every12, logit), /// nocaps group(nethrace) ginvariant(none) /// var(e.DSM_every12@v1) var(e.hhinc_continuous@v2)
invalid covariance specification;
e.DSM_every12 does not identify an error for an uncensored gaussian response with the identity link
an error occurred when svy executed gsem
e.DSM_every12 does not identify an error for an uncensored gaussian response with the identity link
an error occurred when svy executed gsem
UPDATE: I see something in the Stata documentation:
(In gsem, you may not use the cov() option with observed exogenous variables. You also may not use cov() with error terms associated with family (Gaussian, link log.)
Comment