Dear all,
I would like to ask for some advice on 'stset'-ing my dataset with multiple failures per patient.
I have set up my data as recommended by the 'Cleves' tutorial but when I stset, it only recognises the first line per 'subjectid' & I get single-failure-per-subject-data, with blank cells for the subsequent rows.
Variables:
subjectid / tstart / tstop / status /
Command:
stset tstop, failure(status) id("subjectid") enter(tstart) exit(tstop)
id: subjectid
failure event: admission != 0 & admission < .
obs. time interval: (tstop[_n-1], tstop]
enter on or after: time tstart
exit on or before: time tstop
------------------------------------------------------------------------------
3,619 total observations
9 observations end on or before enter()
1,969 observations begin on or after exit
------------------------------------------------------------------------------
1,641 observations remaining, representing
1,641 subjects
833 failures in single-failure-per-subject data
1,190,569 total analysis time at risk and under observation
at risk from t = 0
earliest observed entry t = 0
last observed exit t = 1,581
Variations of the command (including addition of: time0(tstart)) don't seem to help.
Any help would be gratefully received. Thank you
Related Posts with stset for multiple failure data query
How to create an indicator of total vocabulary score for bilingual childrenHi all, I am using a dataset with vocabulary data for 5585 children who are 2 years old. We have a…
Nesting an Iv in Diff-in-DiffHello everyone, I would like to ask one question that I am struggling on. I would like to estimate …
Setting a dummy if names appear in the previous year!Dear All, Suppose that I have data Code: * Example generated by -dataex-. To install: ssc install …
Problem manipulating large database based on conditional statements to eliminate specific observationsHello world of stats and analysis, I have dibbled a bit in STATA over my university years but my wo…
How i can see only interesting for me models.For example i have 100 columns named var... I wrote code for them like this: Code: xtmixed Y X1 X2…
Subscribe to:
Post Comments (Atom)
0 Response to stset for multiple failure data query
Post a Comment