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
panel data analysisHi, Should we check multicollinearity in panel data by VIF method? if we are getting multicollineari…
Missing Variables in Panel Data Across the WavesHello! I have a rather "practical" question. If you have a panel data with T=3, but some of the var…
Ignoring missing value in egen maxDear all, I have a panel data and would like to create a dummy variable using the following: bys bv…
Consider matched pairs when dropping study subjectsHi Statalist, I have a large matched cohort data set where exposed have been matched 1:m with an un…
Keep values in between a range (dates and times)Hello everyone, I am quite new to stata so I would really appreciate your help. I have date-time var…
Subscribe to:
Post Comments (Atom)
0 Response to Interaction term of a global variable list with a factor variable
Post a Comment