Learn R Programming

eha (version 1.2-18)

aftreg.fit: Parametric proportional hazards regression

Description

This function is called by aftreg, but it can also be directly called by a user.

Usage

aftreg.fit(X, Y, dist, strata, offset, init, shape, id, control,
center = FALSE)

Arguments

X
The design (covariate) matrix.
Y
A survival object, the response.
dist
Which baseline distribution?
strata
A stratum variable.
offset
Offset.
init
Initial regression parameter values.
shape
If positive, a fixed value of the shape parameter in the distribution. Otherwise, the shape is estimated.
id
See corresponding argument to aftreg.
control
Controls convergence and output.
center
Should results from centering of covariates be reported?

Value

  • coefficientsEstimated regression coefficients plus estimated scale and shape coefficients, sorted by strata, if present.
  • varVariance-covariance matrix
  • loglikVector of length 2. The first component is the maximized loglihood with only scale and shape in the model, the second the final maximum.
  • scoreScore test statistic at initial values
  • linear.predictorsLinear predictors for each interval.
  • meansMeans of the covariates
  • converTRUE if convergence
  • failTRUE if failure
  • iterNumber of Newton-Raphson iterates.
  • n.strataThe number of strata in the data.

Details

See aftreg for more detail.

See Also

aftreg