Re: [R] coxph() - unexpected result using Crawley's seedlings data (The R Book)

2011-06-28 Thread Jacob Brogren
gs) and str(seedlings) to make clear what > you are using as data. > > > At 06:51 AM 6/28/2011, Jacob Brogren wrote: >> Hi, >> >> I ran the example on pp. 799-800 from Machael Crawley's "The R Book" using >> package survival v. 2.36-5, R 2.1

Re: [R] coxph() - unexpected result using Crawley's seedlings data (The R Book)

2011-06-28 Thread Jacob Brogren
such as Surv(death, status==1) > to make a clear logical statement of what is an event (status==1) vs. > censored. > > PS. Next time include head(seedlings) and str(seedlings) to make clear what > you are using as data. > > > At 06:51 AM 6/28/2011, Jacob Brogren wrot

[R] coxph() - unexpected result using Crawley's seedlings data (The R Book)

2011-06-28 Thread Jacob Brogren
Hi, I ran the example on pp. 799-800 from Machael Crawley's "The R Book" using package survival v. 2.36-5, R 2.13.0 and RStudio 0.94.83. The model is a Cox's Proportional Hazards model. The result was quite different compared to the R Book. I have compared my code to the code in the book but ca