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
Fixed effects stability test or Joint F test for fixed effectsHello every one, I have the wage gap between immigrants and natives Born by census metropolitan are…
How to Aggregate Repeating Dates into new tableI can't remember how to effectively reshape repeating dates in a time series into a new table. Belo…
Comparing regression coefficients across groups in presence of fixed effects with suestHi all, I am trying to run regressions with a building by month panel. Each building have a unique b…
Generate dates that correspond to the 1st Tuesday of each monthHi, The Australian RBA meets the first Tuesday of each month 11 times a year (every months but Janu…
Excel's XIRR function in StataHi Forum I am attempting to perform financial investment performance analysis. For small test samp…
Subscribe to:
Post Comments (Atom)
0 Response to stset with multiple failure per subject data
Post a Comment