Poisson regression (xtpoisson) requires the dependent variable to be a non-negative count variable. However, in some cases one may need to take the first difference of the dependent variable to deal with, for example, reverse causality of the regressors. My question is how can one take the first difference of the count variable in Stata while making sure that the resulting difference stays non-negative so that it can be used in poisson regression. Cameron and Trivedi's Microeconometrics using Stata outline a transformation $(\frac{\lambda_{i,t-1}}{\lambda_{i,t}) * y_{i,t} - y_{i,t-1}$ where $\lambda_{i,t}=exp(x_{it}'\beta)$ which, they state, can be used to eliminate the FE and as the basis for estimation of dynamic panel count models. My question is how can one actually estimate $\lambda_{it}$ in Stata so that it can then be used to create first differences?
Related Posts with How to get first difference of count variable for poisson regression
Interpretation of ROC regression resultsHi all, I performed ROC regressio using the rocreg command and I have the desired results. I know t…
Fixed effectsDear all, I have a cross sectional data with a variable showing number of siblings "n_siblings" for…
Fixed effects analysisDear all, I will please like to find out if i combine two cross sectional data to form a panel will…
ralloc strata re-nameHello all, Is there a way to rename stratas on a stratified randomization using ralloc? ralloc blkn…
Disable auto-complete in do-file editorIs it possible to disable the do-file editor's auto-complete feature in Stata 17? If so, how? …
Subscribe to:
Post Comments (Atom)
0 Response to How to get first difference of count variable for poisson regression
Post a Comment