Learn R Programming

smoothSurv (version 2.6)

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

Description

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

Usage

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

Value

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

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.

Author

Arnošt Komárek arnost.komarek@mff.cuni.cz