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

David Winsemius dwinsemius at comcast.net
Wed Feb 8 22:00:11 CET 2012


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.
> such as w=1<2, I want the value of w to be 1 not true.

That way lies madness.

-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list