This function is called by phreg
, but it can also be directly
called by a user.
phreg.fit(X, Y, dist, strata, offset, init, shape, control)
Estimated regression coefficients plus estimated scale and shape coefficients, sorted by strata, if present.
Variance-covariance matrix
Vector of length 2. The first component is the maximized loglihood with only scale and shape in the model, the second the final maximum.
Score test statistic at initial values
Linear predictors for each interval.
Means of the covariates
TRUE if convergence
TRUE if failure
Number of Newton-Raphson iterates.
The number of strata in the data.
The design (covariate) matrix.
A survival object, the response.
Which baseline distribution?
A stratum variable.
Offset.
Initial regression parameter values.
If positive, a fixed value of the shape parameter in the distribution. Otherwise, the shape is estimated.
Controls convergence and output.
Göran Broström
See phreg
for more detail.
phreg