Usage
multivePenal(formula, formula.terminalEvent, formula2, data, Frailty = TRUE,
initialize = TRUE, recurrentAG = FALSE, cross.validation = FALSE,
n.knots, kappa, maxit = 350, hazard = "Splines", nb.int,
print.times = T)
Arguments
formula
a formula object, with the response on the left of a $\texttildelow$ operator, and the terms on the right. The response must be a survival object as returned by the 'Surv' function like in survival package.
formula.terminalEvent
a formula object, only requires terms on the right to indicate which variables are modelling the terminal event.
formula2
a formula object, only requires terms on the right to indicate which variables are modelling the second recurrent event.
data
a 'data.frame' in which to interpret the variables named in the 'formula', 'formula.terminalEvent' and formula2.
Frailty
Logical value. Is model with frailties fitted? If so, variance of frailty parameter is estimated. The default is FALSE.
initialize
Logical value to initialize parameters. Default equals to 1.
recurrentAG
Logical value. Is Andersen-Gill model fitted? If so indicates that recurrent event times with the counting process approach of Andersen and Gill is used. This formulation can be used for dealing with time-dependent covariates. The default is FALSE.
cross.validation
Logical value. Is cross validation procedure used for estimating smoothing parameter in the penalized likelihood estimation? If so a search of the smoothing parameter using cross validation is done, with kappa1 as the seed. The cross validation is not imp
n.knots
integer vector of length 3 giving the number of knots to use. Value required in the penalized likelihood estimation.
It corresponds to the (n.knots+2) splines functions for the approximation of the hazard or the survival functions.
Number of knots m
kappa
vector of length 3 for positive smoothing parameter in the penalized likelihood estimation. The coefficient kappa of the integral of the squared second derivative of hazard function in the fit (penalized log likelihood). To obtain a good value for k
maxit
maximum number of iterations for the Marquardt algorithm. Default is 350
hazard
Type of hazard functions: "Splines" for semi-parametrical hazard functions with the penalized likelihood estimation, "Piecewise-per" for piecewise constant hazard function using percentile, "Piecewise-equi" for piecewise constant hazard function using equ
nb.int
An integer vector of length 3.first is the Number of intervals (between 1 and 20) for the recurrent parametrical hazard functions ("Piecewise-per", "Piecewise-equi"). Second is the Number of intervals (between 1 and 20) for the death parametrical hazard f
print.times
a logical parameter to print iteration process. Default is FALSE.