Usage
additivePenal(formula, data, correlation = FALSE, recurrentAG =
FALSE, cross.validation = FALSE, n.knots, kappa,
maxit = 350, hazard = "Splines", nb.int,
LIMparam = 1e-4, LIMlogl = 1e-4, LIMderiv = 1e-3,
print.times = TRUE)
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' with the variables used in '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 kappa 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
kappa
positive smoothing parameter in the penalized likelihood estimation. In a stratified additive model,
this argument must be a vector with kappas for both strata. The coefficient kappa of the integral of the squared
second derivative of hazard funct
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.int
Number of intervals (between 1 and 20) for the parametric hazard functions ("Piecewise-per", "Piecewise-equi").
LIMparam
Convergence threshold of the Marquard algorithm for the parameters (see Details), $10^{-4}$ by default.
LIMlogl
Convergence threshold of the Marquard algorithm for the log-likelihood (see Details), $10^{-4}$ by default.
LIMderiv
Convergence threshold of the Marquard algorithm for the gradient (see Details), $10^{-3}$ by default.
print.times
a logical parameter to print iteration process. Default is TRUE.