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
Cluster analysis with longitudinal dataAre there commands in Stata that are similar to the kml3d package in R (see e.g. Genolini et al 2015…
error opening .dta file created in sashello, I converted a sas data file into a stata .dta file ( or atleast i thought i did) and it will …
Generate a week from a data and "xtset" the dataDear Stata Users, I have the sample of data attached below. I need to create a “week” date that goes…
Problem with Difference in difference specificationHi all, I am sorry if this topic has been covered before. However, I did my research but failed. I…
Regress y on each variable each timeHi, I want to run regressions in the following way: reg y x1 i.year i.ind reg y x2 i.year i.ind re…
Subscribe to:
Post Comments (Atom)
0 Response to -xtdpdml- with interaction term
Post a Comment