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
'for each' with svysetHello! I am interested in tabbing values for each value of one variable, with thirteen values. vall…
Calculating only year and months-fixed effects and excluding individual fixed effects Code: xi: xtivreg2 father_childcare fage fage2 i.fmonth i.syear (fretired = fdisc60) …
Breusch Pagan LM Test and Hausman TestHello there, i have paneldata form 2002 - 2019 from 505 companies. I need to perfom a industry and …
toolbar options greyed out on Mac Stata 16/SEHello. I just downloaded Stata 16/SE onto my mac. Some of the buttons on the toolbar and greyed out …
Estimate Pre-event window based on business and not calendar daysDear Stata Users, Can you please help to construct a pre-event window of 23 days (including event d…
Subscribe to:
Post Comments (Atom)
0 Response to Interaction term of a global variable list with a factor variable
Post a Comment