poly.weibull: Fit Poly-Weibull model for survival analysis of mixture...

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/poly.weibull.R


Runs the survival analysis using a Poly-Weibull model





a list of formulae (one for each components of the mixture. Can specify one single formula (in which case, the model is a simple Weibull regression). For example, a valid call is using formula=list(Surv(time,event)~1,Surv(time,event)~arm)


A data frame containing the data to be used for the analysis. This must contain data for the 'event' variable. In case there is no censoring, then event is a column of 1s.


Additional options (for INLA or HMC).

**HMC** specific options chains = number of chains to run in the HMC (default = 2) iter = total number of iterations (default = 2000) warmup = number of warmup iterations (default = iter/2) thin = number of thinning (default = 1) control = a list specifying Stan-related options, eg control=list(adapt_delta=0.85) (default = NULL) seed = the random seed (to make things replicable) pars = a vector of parameters (string, default = NA) include = a logical indicator (if FALSE, then the pars are not saved; default = TRUE) priors = a list (of lists) specifying the values for the parameters of the prior distributions in the models save.stan = a logical indicator (default = FALSE). If TRUE, then saves the data list for Stan and the model file(s)


On object in the class survHE containing the following elements



A list containing the fitted models. These contain the output from the original inference engine (flexsurv, INLA or rstan). Can be processed using the methods specific to the original packages, or via survHE-specific methods (such as plot, print) or other specialised functions (eg to extrapolate the survival curves, etc).


A list containing the output of the model-fit statistics (AIC, BIC, DIC). The AIC and BIC are estimated for all methods, while the DIC is only estimated when using Bayesian inference.


A string indicating the method used to fit the model, ie 'mle', 'inla' or 'hmc'.


A list containing the time needed to run the model(s) (in seconds), the formula used, the results of the Kaplan-Meier analysis (which is automatically performed using npsurv) and the original data frame.


Something will go here


Gianluca Baio


Something will go here

See Also

Something will go here



giabaio/survHE documentation built on Dec. 2, 2017, 10:10 a.m.