I have a longitudinal dataset with 2 matched cohorts (Cohort==1 & Cohort==0) in a ratio of 1:3 that I am following longitudinally until a failure/event occurs.
I want to compare failure functions (cumulative incidence) at a time _t between the 2 cohorts
To set my data I use:
stset timeelapsed, failure(failure) id(id)
then I use
sts list, failure by(Cohort) saving(KM)
to get the failure function result for each cohort at a time _t
I want to sample from these cohorts 500 matched individuals and do 500 bootstraps of the difference in failure functions to get an estimate of the difference in cumulative incidence and related 95% confidence interval at each time point _t.
Any advice?
Related Posts with Bootstrapping to obtain confidence intervals around differences in failure functions
Binscatter2 - faster, enhanced binned scatterplots in StataHi all, I wanted to make note of a program that I've had available on GitHub for a while now to gen…
How does one put formatted date labels into excel with Putexcel?*Hi there, Here's my code: local vars "date" foreach pre in `vars'{ putexcel set "tabout/cleaning…
Extracting a specific part of a string if the string contains an exact syntaxOK, so I'm not explaining this very well but here is what I want to do. I have data as shown below. …
creating a variable that takes a value of the difference of the last non-missing value and the first non-missing value in panel datai have panel time series. I want to create a variable that is the difference between the last non-mi…
renaming using loop Code: * Example generated by -dataex-. To install: ssc install dataex clear input str43 Q2_8a1 dou…
Subscribe to:
Post Comments (Atom)
0 Response to Bootstrapping to obtain confidence intervals around differences in failure functions
Post a Comment