Usage
additivePenal(formula, data, correlation = FALSE, recurrentAG =
FALSE, cross.validation = FALSE, n.knots, kappa1,
kappa2, maxit = 350, hazard = "Splines", nb.int1)
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. The slope()
function is requir
data
a 'data.frame' in which to interpret the variables named in the
'formula'.
correlation
Logical value. Are the random effects correlated? If so,
the correlation coefficient is estimated. The default is FALSE.
recurrentAG
Always FALSE for additive models (left-truncated data are not allowed).
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.
n.knots
integer 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 must be between 4
kappa1
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. To obtain an initial value for kappa1
(or kappa2
), a sol
kappa2
Positive smoothing parameter in the penalized likelihood estimation for the second stratum when data are stratified. See kappa1.
maxit
maximum number of iterations for the Marquardt algorithm.
Default is 350
hazard
Type of hazard functions: "Splines" for semiparametric hazard functions with the penalized likelihood estimation, "Piecewise-per" for piecewise constant hazards functions using percentile, "Piecewise-equi" for piecewise constant hazard functions using equ
nb.int1
Number of intervals (between 1 and 20) for the parametric hazard functions ("Piecewise-per", "Piecewise-equi").