Hi,
I am using Stata 14.0 and trying to obtain full interaction of my variable list with a factor variable. Is there an easy way Stata allows me to do this while using global variable lists?
Here is what I tried:
global lexppr lexpretprice lexpfraprice /// Expected output prices
global lcurrpr lretprice lfraprice /// Current output prices
probit mzmktpos i.lc##c.($lexppr $lcurrpr) i.lc##i.(malehead year)
Stata ran the regression but ignored the interaction of factor variable "lc" with my global variables : i.lc##c.($lexppr $lcurrpr). It did not give me an error message either.
Thanks for any help in advance,
Aakanksha
Related Posts with Interaction term of a global variable list with a factor variable
STataSta …
When Stata if command is false, calling on Mata causes errorsHi everyone, Using Stata 15.1 MP8, I've encountered a variety of errors that seem to be caused by ca…
Stata16: Measurement invariance testing - how to get Chi2 values?Hi there, I want to test for measurement invariance in Stata 16. I want to follow the approach of t…
how can I turn year of birth into age?Hello! I'm trying to recode a variable named V241 in the World Values Survey data set (which can be …
After regression, how can I do calculation using r2 and N?After regression, I want to calculate the scalar, that is r2*N How should I do that? I know my bad …
Subscribe to:
Post Comments (Atom)
0 Response to Interaction term of a global variable list with a factor variable
Post a Comment