Hi everyone,
I would like to ask for some advice on stset-ing my dataset with multiple failures per subject.
The event is 'admission to hospital'. So each subject can be admitted again after they are discharged.
I have set up my data as recommended by the Cleves tutorial for conditional risk set modelling (3.2.4) but when I stset, it only recognises the first line per id' & I get an output for 'single-failure-per-subject-data', with blank cells for the subsequent rows.
. stset end, fail(admit) enter(start) exit(end) id(id)
id: id
failure event: admit != 0 & admit < .
obs. time interval: (end[_n-1], end]
enter on or after: time start
exit on or before: time end
------------------------------------------------------------------------------
298 total observations
5 observations end on or before enter()
63 observations begin on or after exit
------------------------------------------------------------------------------
230 observations remaining, representing
230 subjects
31 failures in single-failure-per-subject data
188,425 total analysis time at risk and under observation
at risk from t = 0
earliest observed entry t = 20,698
last observed exit t = 21,792
Any help much appreciated.
thanks,
Tommy.
Related Posts with stset with multiple failure per subject data
latent class model with predicted probabilities?I have a question that I can't find the answer to. I have a latent class model with covariates, esse…
About the import commandHi,I want to import an excel file to stata.When I use the import command in the do file,I encount a …
two-stage multinomial logistic regression (mlogit-->logit)Hello, I want to try to analyze the data in two stages where step 1 uses multinomial logit (3 catego…
Defining variables in a loopHello All, I have a long list of variables that all need to be defined in the same way. I wrote the…
RESET Test after running logistic regressionHello, I was informed by my thesis supervisor that I should consider conducting a RESET test. I hav…
Subscribe to:
Post Comments (Atom)
0 Response to stset with multiple failure per subject data
Post a Comment