smoothSurvReg.fit: Work Function to Fit the Model Using 'smoothSurvReg'

Description Usage Arguments Value Note Author(s)

View source: R/smoothSurvReg.fit.R

Description

Fit the survival regression model with smoothed error distribution. This function is not to be called by the user.

Usage

1
smoothSurvReg.fit(x, z, y, offset = NULL, correctlik, init, controlvals, common.logscale)

Arguments

x

A covariate matrix.

z

A covariate matrix for log(scale).

y

A two- or three- column matrix with response. The last column indicate the type of censoring. See Surv for details.

offset

A vector with possible offset term.

correctlik

Correction term to the likelihood due to the log transformation of the response.

init

A list with components beta, scale, ccoef giving the initial values for the fitting process.

controlvals

A list returned by smoothSurvReg.control.

common.logscale

Indicator (TRUE/FALSE) indicating whether the log-scale is same for all observations or whether it depends on covariates.

Value

A list with components regres, spline, loglik, aic, degree.smooth, var, var2, dCdC, iter, estimated, warning, fail, H, I, G, U.

Note

WARNING: Most users will call the higher level routine smoothSurvReg. Consequently, this function has very few error checks on its input arguments.

Author(s)

Arnošt Komárek arnost.komarek[AT]mff.cuni.cz


smoothSurv documentation built on July 8, 2020, 5:46 p.m.