Hi

 

I have been asked to provide Weibull parameters from a paper using
Kaplan Meir survival analysis. 

This is something I am not familiar with.

The survival analysis in R works nicely and is the same as commercial
software (only the graphs are superior in R).

The Weibull does not and produces an error (see below). 

Any ideas why this error should occur? 

 

My approach may be spurious.

 

Code follows

 

#The following works fine

> surv.mod1 <- survfit( Surv(SURALL2, relall6==1)~randgrpc,
type=c("kaplan-meier"),data=Dataset)

>

 

#The following works produces the error below

> surv.mod2 <- survreg( Surv(SURALL2, relall6 == 1)~randgrpc,
data=Dataset, dist="weibull")

Error in survreg(Surv(SURALL2, relall6 == 1) ~ randgrpc, data = Dataset,
: 

        Invalid survival times for this distribution

 

 

> version

         _              

platform i386-pc-mingw32

arch     i386           

os       mingw32        

system   i386, mingw32  

status                  

major    2              

minor    1.1            

year     2005           

month    06             

day      20             

language R              

>

 

Many thanks

 

S.


???? ?"? ???? ????
http://mail.nana.co.il

	[[alternative HTML version deleted]]


