[R] WEIBULL or EXPONENTIAL?

varin sacha varinsacha at yahoo.fr
Fri Apr 3 21:42:43 CEST 2015


Hi Xavier,

I use the fitdistrplus and logspline packages to know which distribution fits better my data.


Here is an example :

install.packages("fitdistrplus")
library(fitdistrplus)
instal.packages("logspline")
library(logspline)
x=c(44986,18288,56147,44488,41018,40631,27301,39025,45688,47172,12300,21558,16103,48874,67245,36119,10398,42630,12879,34058,84443,30639)
descdist(x,discrete=FALSE) 

Cheers,
S.



________________________________
De : CHIRIBOGA Xavier <xavier.chiriboga at unine.ch>
À : "r-help at r-project.org" <r-help at r-project.org> 
Envoyé le : Vendredi 3 avril 2015 16h33
Objet : [R] WEIBULL or EXPONENTIAL?


Dear members,



I am doing a survival analysis wiith the function coxph...however I am wondering how can I know if my data follows a EXPONENTIAL or WEIBULL distribution?

I have 3 censored datum. Using R studio.



Thanks for the suggestions,



Xavier

______________________________________________
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.



More information about the R-help mailing list