Dear all,
I have a count-dependent variable and my main independent variable is also a count variable with many zeros. Therefore, I am trying to use a zero-inflated Poisson regression model in STATA 17.
My data covers the years between 2014 and 2020. I want to build a pooled time series model using a zero-inflated Poisson estimator, which STATA has a "zip" command for this.
When I use the zip command with lagged variables, STATA throws an error, warning me not to use time-series operates such "L.". I wrote the syntax below. When I exclude "L." operator, I can run the command; however, my model affects autocorrelation and endogeneity without lagging. I can create different lagged variables without using time operators, but I don't understand why STATA does not allow to use of time operators with the "zip" command? What is the reason for this?
Time-Series Pooled Model with Year-Fixed Effects. The Code that STATA 17 gives error for using time operators.
When I omit time operators, I can run the command above.
Best,
I have a count-dependent variable and my main independent variable is also a count variable with many zeros. Therefore, I am trying to use a zero-inflated Poisson regression model in STATA 17.
My data covers the years between 2014 and 2020. I want to build a pooled time series model using a zero-inflated Poisson estimator, which STATA has a "zip" command for this.
When I use the zip command with lagged variables, STATA throws an error, warning me not to use time-series operates such "L.". I wrote the syntax below. When I exclude "L." operator, I can run the command; however, my model affects autocorrelation and endogeneity without lagging. I can create different lagged variables without using time operators, but I don't understand why STATA does not allow to use of time operators with the "zip" command? What is the reason for this?
Time-Series Pooled Model with Year-Fixed Effects. The Code that STATA 17 gives error for using time operators.
Code:
zip logqataraidint L.logqatariaidint c.L.loguae i.muslim i.arableague L.cce L.logdacoda L.logqatarexports L.logqatarimports L.loggdpper L.infant L.logpopulation L.logaffected i.year, inflate(qatarbilateral) vce(cluster iso)
Best,
Comment