What is the problem:
I am using the post-estimation 'predict' command to estimate the hazard rates for individuals after running a cure model (cureregr) and I get the following error message:
Maximum number of iterations exceeded.
r(498);
What am I doing:
I am conducting an individual-level fertility analysis, using longitudinal event history data, in which I am modelling parity progression (the relative risk of having another child) using a split-population/cure model (cureregr). _t is the duration of the interbirth interval for all second and higher-order births combined. The model contains several control variables, age, region, ses for example and is stratified across mother's birth cohorts.
What does my syntax look like:
xi: cureregr i.age i.region i.ses if cohort ==1, dist(lognormal) class(m) link(logi) sc(i.age i.region i.ses) nolog
predict, haz gen(my_hazard)
What else:
The error only seems to arise for some mother's birth cohorts and not others.
Related Posts with cureregr: post-estimation problem predicting hazards
Compute Estimated Hazard and Plot Estimated Hazard Curve after Fitting a xtmelogit Survival Model in StataThe dataset is presented below, insheet using "https://ift.tt/aXA9elG", comma foreach i of varlist …
"variable at_exp_share11 already defined" is always displayed when I run the command."variable at_exp_share11 already defined" is always displayed when I run the command. But I can conf…
Undisplayed dates: weekends, public holidays, and other reasonsHi I have a dataset that includes daily observations and a daily date variable (DATE). Some dates a…
Number of Estimated Coefficients in a RegressionIs there a way to display the number coefficients estimated in a regression? I am estimating differe…
generate variable on the basis of industry year and firmDear Forum, I have the following very basic problem. Unfortunately, I couldn't find an appropriate s…
Subscribe to:
Post Comments (Atom)
0 Response to cureregr: post-estimation problem predicting hazards
Post a Comment