[R] How to run coxph() with time dependent cohort sampling

From: Jin Wang <jinwang25_at_gmail.com>
Date: Mon, 30 Jun 2008 17:10:13 -0400


 Now that we have case cohort model , we have 1000 people and 50 cases

   Let the first       10 cases occur at the same time
        second     10         "
        third       10         "
        fourth       10        "
        fifth        10        "

 How easy is it to randomly sample 50 different  cohort controls for each group?

That is:

randomly sample 50 cohort controls for the first 10 cases from all 1,000

randomly sample 50 new cohort controls for the second 10 cases from the  surviving 990

randomly sample 50 new cohort controls for the third 10 cases from the  surviving 980

randomly sample 50 new cohort controls for the fourth 10 cases from the  surviving 970

randomly sample 50 new cohort controls for the fourth 10 cases from the  surviving 960

and run these through a time dependent COX-PH?

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 30 Jun 2008 - 21:14:36 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 30 Jun 2008 - 22:31:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive