Hello,
I am trying to run a flexible Parametric model in Stata. I study various outcomes and I run the analysis for male and females seperatly. I study risk of disease occurence and I compare patients with cancer to cancer-free. I include cancer as a time-varying covariate. The time scale is attained age and individuals are under risk from 2005 or age 20. Thus, the Entry_date is either 1/1/2005 or the date an individual turns 20.
stset end_date, failure(Outcome) enter(time Entry_date) scale(365.25) origin(time birth_date) id(id)
I use expand to define a my time-varinging variable, then I run the stpm2. The model runs for male but i get the above error message for females.
stpm2 i.cancer i.education i.country_birth, scale(hazard) df(5) tvc(cancer) dftvc(3) eform cformat(%9.2f) Level(99)
any suggestions what can be wrong? I have slightly higher number of cases among women than men which shouldn't usually be a problem. I appreciate any help or advice.
Sara
Related Posts with stpm2, initial values not feasible
Create multiple observations from a current one considering a specific variableI have a set of companies with the date they were founded and the date they were acquired by other c…
Using if statements using foreachHi everyone, I'm fairly new to STATA and this one practice problem has been driving me crazy...I wo…
How to create a paired unit identifier?In the help file of did_imputation, I saw that when using triple diff: 22) Triple-diffs: When o…
GamHello I am not able to get GAM to work anyone has advice on how to download GAM? Thank you …
Why trend is important in AMG and CCEMG estimators?Dear Statalist I read many papers estimate the CCEMG and AMG using the command of xtmg they add tre…
Subscribe to:
Post Comments (Atom)
0 Response to stpm2, initial values not feasible
Post a Comment