Dear Statalists,
To control for endogeneity, can I use the Lag for the Discrete hazard proportional odd. For instance,
At first, setting the data as a panel:
xtset ID TIME
Then writing the following code:
logit Dep l.X1 l.X2 l.X3 l.X4 l.X5 e2 e3, nolog cluster (COMPID).
Thanks in advance.
Related Posts with Lag for Survival Analysis (Discrete hazard proportional odd)
egen or gen newvar to categorize the 50 states into Democrat, Republican, or Swing based on 2016 election resultsHi y'all I would be most grateful if anyone out there has written a simple code to categorize states…
Coding 0,1,2 for political states in 2016Hi y'all I would be most grateful if anyone out there has written a simple code to categorize states…
Strange convergence properties using xtmlogitHi, I'm having some convergence troubles with xtmlogit (Stata 17). In trying to isolate exactly wha…
How to calculate BMI using height & weightGood afternoon, I was wondering if any of you, STATA experts, could assist me and guide me in how t…
how to perform a multivariate multilevel model with Stata? hello statalist I have a problem I would like to analyze independently the reading and mathematical…
Subscribe to:
Post Comments (Atom)
0 Response to Lag for Survival Analysis (Discrete hazard proportional odd)
Post a Comment