Hi, I need your help in my regression model:
I have a panel data for 6 year at state level (50 states).
The dependent variable is logged (ln Y), with explanatory variables: X1 (%), X2 (level), X3 (level), X4 (level), X5 (control variable).
Most of the control variables, including the main variables of interest (X1, X2, X3, X4) seem endogenous.
In other words, many factors that affect changes in these endogenous variables are likely to be correlated with the error term in the main specification.
Is the lagged dependent variable possible with the log format? Or, I need to add lagged dependent variable as a new explanatory variable:
fe<-plm(log(Y)~lag(Y)+X1+X2+X3+X4+X5,data=pdata,model= "within")
re<-plm(log(Y)~lag(Y)+X1+X2+X3+X4+X5,data=pdata,model= "random")
Thanks,
Related Posts with Solving Endogeneity in Panel Data Analysis: (R coding)
Finding "new" occurrences in panel dataDear Stata Users, I am trying to identify when an observation is a "new "occurrence in within a pan…
Trouble with nested option in synthHi all, I am trying to use the user-contributed synth to estimate with synthetic control method. I a…
Trend analysisI am interested in comparing a linear trend model with 1) power trend, 2) exponential trend, and 3) …
Bivariate and Multiple linear regressionHello guys, I have cross-sectional data and I intend to perform a bivariate (linear) regression and…
marginal effects after Heckman Probit modelHi all, can anyone recall the command that one can use to estimate the marginal effects after a Heck…
Subscribe to:
Post Comments (Atom)
0 Response to Solving Endogeneity in Panel Data Analysis: (R coding)
Post a Comment