Hi all,
I have some questions regardings the dynamic random-effects probit model, especially with the command -xtdyn-
So my panel data has information on 2001, 2003, 2005, 2007, 2009, 2011 and 2013. When I try -xtdyn-, it returns the error saying "no observations r(2000)". I thought the reason for that error is that the years are not consecutive.
So to test my thought, I re-defined the year variable to make it consecutive. So instead of 2001, 2003, 2005, 2007, 2009, 2011 and 2013, it is now 2001, 2002, 2003, 2004, 2005, 2006 and 2007. And the command works.
I suspect that redefining the year variable is going to create some problems, but I am not so sure. Is there going to be any problem if I do that? If so, could you please let me know what the problem will be?
The dynamic random-effects probit model uses the lagged and initial value of the dependent variable and initial values and within-unit averages of the time-varying explanatory variables. Can I construct those variables manually and use -xtprobit-? Would they be equivalent?
Thank you for your help.
Related Posts with Fitting dynamic random-effects probit model - xtdyn-
reshaping to long with a string IDI want to reshape my data from wide to long. I implement: Code: reshape long MortgageloansthUSD2010…
stcrreg command get subhazard ratio Code: use http://www.stata-press.com/data/r13/hypoxia, clear set seed 134 stset dftime, failure(fai…
Dealing with zerosI have lots of zeros in both my dependent and independent variables. One way that I was dealing wit…
Extracting dummy regression coefficients using statsbyI have the dataset shared further below. I need to: a) run several regressions whereby a continuous …
Exporting tabstat output to Excel file?Hi stata experts, I'm trying to export a tabstat table into excel sheet and have tried multiple com…
Subscribe to:
Post Comments (Atom)
0 Response to Fitting dynamic random-effects probit model - xtdyn-
Post a Comment