Hi Stata Experts:
I would to use -xtdpdml- to estimate dynamic panel cross-lagged model.
My model is Y(t)=aY(t-1)+bX(t-1)+cX(t-1)*A+dZ(t)+error term(t)
My main interest variable is interaction term between X(t-1) and A. Both X and A are categorical variables, with 18 categories.
May I know whether -xtdpdml- can accommodate interaction term like this? and how to code this categorical variable? may I directly use i.X##i.A? If not, could you please give a brief example how to code this interaction term in -xtdpdml-?
Thanks
Connie
Related Posts with -xtdpdml- with interaction term
Outreg2 in Probit modelHi everyone, I am using outerg2 to publish the results of a Probit regression in a word document. H…
Optimal MISSING DATA technique in large retrospective study on RTAHello everyone, First post here and I have to say I really enjoy my first months with Stata, even t…
Use for loop to generate growth rate and extrapolate dataI have a dataset of the following sort: Code: * Example generated by -dataex-. To install: ssc in…
Help with spmap legend optionHi, Im currently working on a map of Colombia with Stata 14 and spmap (Maurizio Pisati) based on th…
Dyadic panel data regressionHello everyone, I'm currently working on a dyadic dataset which I want to analyze by using panel da…
Subscribe to:
Post Comments (Atom)
0 Response to -xtdpdml- with interaction term
Post a Comment