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 <[email protected]>
À : "[email protected]" <[email protected]>
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
______________________________________________
[email protected] 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.
______________________________________________
[email protected] 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.