Re: [R] How to store the p value and number of events into a matrix

2012-02-08 Thread David Winsemius
On Feb 8, 2012, at 4:24 PM, Rolf Turner wrote: On 09/02/12 10:00, David Winsemius wrote: On Feb 8, 2012, at 3:50 PM, summer wrote: Hi, there is p value and number of events from coxph results. How can I keep record of every p value and number of events automatically if I run 100 times?

Re: [R] How to store the p value and number of events into a matrix

2012-02-08 Thread Rolf Turner
On 09/02/12 10:00, David Winsemius wrote: On Feb 8, 2012, at 3:50 PM, summer wrote: Hi, there is p value and number of events from coxph results. How can I keep record of every p value and number of events automatically if I run 100 times? ?replicate Another question is how can I change th

Re: [R] How to store the p value and number of events into a matrix

2012-02-08 Thread David Winsemius
On Feb 8, 2012, at 3:50 PM, summer wrote: Hi, there is p value and number of events from coxph results. How can I keep record of every p value and number of events automatically if I run 100 times? ?replicate Another question is how can I change the true or faulse statment to 1 and 0.

[R] How to store the p value and number of events into a matrix

2012-02-08 Thread summer
Hi, there is p value and number of events from coxph results. How can I keep record of every p value and number of events automatically if I run 100 times? Another question is how can I change the true or faulse statment to 1 and 0. such as w=1<2, I want the value of w to be 1 not true. Thank you.