Poisson regression using Panel data requires the dependent variable ($y_{it}$) to be a non-negative count variable. I need to take the first difference of the dependent variable to deal with reverse causality of the regressors. 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}$ (ideally in Stata) so that it can then be used to create first differences?