Greetings! I am hoping to use interactions in a linear SEM and have an error message.
works fine, but
both return an error: interaction operators not allowed r(101);
There is a workaround:
However, I'm wondering why this is so and if there's any way to use the Stata trunk#price coding. Thank you!
Code:
sysuse auto sem (mpg <- turn trunk price) (trunk <- length)
Code:
sem (mpg <- turn c.trunk##c.price) (trunk <- length) sem (mpg <- turn trunk price c.trunk#c.price) (trunk <- length)
There is a workaround:
Code:
gen trpr = trunk*price sem (mpg <- turn trunk price trpr) (trunk <- length)
However, I'm wondering why this is so and if there's any way to use the Stata trunk#price coding. Thank you!
Comment