Hello all,
I am using GSEM to estimate the effect of X, which is endogenous, on Y, with the instrumental variable IV and bunch of other exogenous variables Zs.
The problem is, my X and two of Zs (let's call them Z1 and Z2) are interacted and I'm not so sure how to deal with this.
I've tried the code below but STATA says that I can't include interaction terms between latent variables.
. gsem (Y <- X Z1 Z2 X#Z1 X#Z2 Z3 Z4 Z5, Oprobit) (X <- IV), vce(cluster Z5)
Y, X, Z1, and Z2 are all ordinal variables and IV is continuous.
Since I've never used gsem command, I'm not sure about the details... Any help will be greatly appreciated!!
Best,
MJ
I am using GSEM to estimate the effect of X, which is endogenous, on Y, with the instrumental variable IV and bunch of other exogenous variables Zs.
The problem is, my X and two of Zs (let's call them Z1 and Z2) are interacted and I'm not so sure how to deal with this.
I've tried the code below but STATA says that I can't include interaction terms between latent variables.
. gsem (Y <- X Z1 Z2 X#Z1 X#Z2 Z3 Z4 Z5, Oprobit) (X <- IV), vce(cluster Z5)
Y, X, Z1, and Z2 are all ordinal variables and IV is continuous.
Since I've never used gsem command, I'm not sure about the details... Any help will be greatly appreciated!!
Best,
MJ
Comment