Hi everyone, I am conducting the Wooldridge test for serial autocorrelation for my mediation analysis. My data is unbalanced panel data.
I wanted to know if I should include the mediator and control variables to the xtserial command or not? Basically I have added lagged Dependent Variable (DV) as a control which is why I wanted to check for autocorrelation. But I am not sure if I need to include all control variables as well as the mediator variable in the test. Right now I am using the following equation:
1. xtserial DV IV MV CV1 CV2 CV3 CV4
Where DV= Dependent Variable, IV= Independent Variable, MV= Mediator Variable, CV1-CV4= Control Variables
Should I use this set up or should I just keep the following set up with just one control variable which is the lagged DV:
2. xtserial DV IV MV CV1(Lagged DV)
Thank you in advance!
Related Posts with Do I add mediator and control variables in Wooldridge test for autocorrelation on Stata?
Long Data Format: Creating a New Variable with Values Conditional on Combination of Values of Other Variables Across Many ObservationsHello! I am stuck not knowing how to create a variable I need based on my current data. I have a l…
How to graph difference in means between model 1 and model 2Hi Statalist, I will appreciate help with this problem. First, here is my data: Code: * Example g…
Using margins with several related continuous variablesI performed a Poisson regression with robust variance estimation. I have 3 independent variables. Th…
Help with ANOVAI am a relatively new user of Stata and was trying to evaluate an ANOVA analysis and investigate the…
Using mata to create matrixI'd like to create a matrix shown in the figure. It's a NC*(N+C) matrix. All N block matrixes on the…
Subscribe to:
Post Comments (Atom)
0 Response to Do I add mediator and control variables in Wooldridge test for autocorrelation on Stata?
Post a Comment