pchreg2: Piecewise constant proportional hazards regression

Description Usage Arguments Value Author(s) See Also

Description

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

Usage

1
2
3
pchreg2(X, Y, cuts, strata = rep(1, NROW(Y)), offset = rep(0, NROW(Y)),
  init = rep(0, NCOL(as.matrix(X))), control = list(eps = 1e-08, maxiter =
  15, trace = TRUE))

Arguments

X

The design (covariate) matrix.

Y

A survival object, the response.

cuts

Specifies the points in time where the hazard function jumps. If omitted, an exponential model is fitted.

strata

A stratum variable.

offset

Offset.

init

Initial regression parameter values.

control

Controls convergence and output.

Value

A list

Author(s)

Göran Broström

See Also

phreg.


goranbrostrom/eha2 documentation built on May 17, 2019, 7:59 a.m.