- Notifications
You must be signed in to change notification settings - Fork7
jrdnmdhl/flexsurvcure
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
The development repository for flexsurvcure, an R package for parametric mixture and non-mixture cure models. Flexsurvcure is based onflexsurv, the R package for parametric survival modelling.
install.packages("flexsurv")install.packages("devtools")devtools::install_github('jrdnmdhl/flexsurvcure')
All of the built-in distribution with flexsurvreg are supported, though some currently have issues with convergence and numerical instability. The following distributions currently seem reliable:
- Exponential (exp)
- Weibull (weibull, weibullPH)
- Lognormal (lnorm)
- Log-Logistic (llogis)
The following distributions are supported, but may not be reliable:
- Gompertz (gompertz)
- Generalized Gamma (gengamma, gengamma.orig)
- Generalized F (genf, genf.orig)
Custom distributions can also be used by passing a distribution list (seeflexsurv examples).
mixture= flexsurvcure(Surv(rectime,censrec)~group,data=bc,dist="weibullPH",link="logistic",mixture=T)plot(mixture)
non_mixture= flexsurvcure(Surv(rectime,censrec)~group,data=bc,dist="weibullPH",link="loglog",mixture=F)plot(non_mixture)
non_mixture_covarite_scale= flexsurvcure(Surv(rectime,censrec)~group,data=bc,anc=list(scale=~group),dist="weibullPH",link="loglog",mixture=F)plot(non_mixture_covarite_scale)
About
Parametric cure models for flexsurvreg
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published