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
trend and timeI want regress difference model in panel data. using two year data, for example, I want to estimate …
Alternative of Cronbach alpha (for single item measures)Hi, I've data on patients subjective health measured by a single question "How is your health today"…
generating a new var and replacing its values with the previous year's valuesHi everyone, A sample of my data looks as follows (my current data ). As you can see, the person 1's…
Generate new variable by levelsof format %td datevar …
xtabond2 for a dynamic GMMHello dear al, I face a problem when I run a dynamic GMM model for a panel data. My research is abo…
Subscribe to:
Post Comments (Atom)
0 Response to -xtdpdml- with interaction term
Post a Comment