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
Welch's F-test as an alternative to Fisher's F.Hi Everyone,
Is there an option to get Welch's F or Brown-Forsythe's F in Stata (for situations whe…
Creating 5th lags for list of variables in wide rangeI seem to be stuck trying make 5th lags of my panel data for counries on government debt from 1990 t…
How to combine descriptive statistics and ttest resultsArray Hello;
I have three dependent variable and all of them are binary, and a list of independent …
Loop not identifying the local of variable suffixesHi. I am trying to run the loop below over several individual datasets for the years 2007-2012. Some…
discrete-time survival analysis (xtcloglog) the outcome problemsHi everyone,
I am running a discrete-time survival analysis about firm survival on an unbalanced pan…
Subscribe to:
Post Comments (Atom)
0 Response to stset for multiple failure data query
Post a Comment