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
F-test for Fixed Effect With Robust SEHi everyone, A few days ago i made a post and some of my questions answered very well. But there's …
oaxaca rifDear all, I have a question regarding user written command oaxaca_rif by Firpo, Sergio, Fortin, Nic…
-gsem- with binary variablesI asked for the following multilevel mediation model where my mediator is a binary variable with 0 a…
Removing the intermediate 0 from string variableHey everyone, I have a string variable 'p2' that consists of ID codes formatted as follows "BBSC012…
Logit estimation - Margins - not estimableDear forum members, I face the following issue. I am running a logit regression on survey data (ind…
Subscribe to:
Post Comments (Atom)
0 Response to -xtdpdml- with interaction term
Post a Comment