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
memory usage errorHello, I am a habitual Stata/SE 15.1 user. Today when opening a large dataset I received an insuffi…
Create new variable based on other variablesI have a data set on gross income and I'm trying to display the percent of total gross income (in a …
When to use Hausman test to choose between Fixed Effects or Random Effects?I want to use fixed effects to estimate the impact that a fiscal council's presence has on country m…
numeric format & changed valueI am using ver.15 and created ID from PIDM (to convert ID to string). The PIDM column is %10.0g. How…
Question about the hypothesized mean in a t-testDear all in Statalist, I want to perform a t-test for a hypothesized mean of, for instance, +/-2. I…
Subscribe to:
Post Comments (Atom)
0 Response to stpm2, initial values not feasible
Post a Comment