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
estat ginvariant with imputed dataHi. For a project I am using plausible values (performance data) and hence use sem in combination wi…
Any way to get the equivalent of "list" but with variables in rows and observations in colums?The 'list' command is pretty handy, but in most cases the output doesn't fit the screen if you want …
Stata Is Omitted dummy variable(its value 0 and 1)Hi Experts Hope you are doing well! Please solve my query. Dataset is Unbalanced Panel Data Data w…
Risk ratio meta analysis - naive questionIt appears that risk ratio (comparing p/(p+q) for each group) is preferred to odds ratio (using p/q …
Merger Simulationhi Stata people, I would like to have your expertise on a problem!! I am analyzing the demand estim…
Subscribe to:
Post Comments (Atom)
0 Response to stset with multiple failure per subject data
Post a Comment