Proportional hazards regression with piecewise constant hazards and tabular data.
tpchreg(
formula,
data,
time,
pieces,
subset,
na.action,
contrasts = NULL,
start.coef = NULL,
control = list(epsilon = 1e-08, maxit = 200, trace = FALSE)
)
a formula with 'oe(count, exposure) ~ x1 + ...'
a data frame with event, exposure, age plus covariates
the time variable, a factor indicating time intervals.
numeric vector of length 1 or length(levels(time)): The length(s) of timeintervals.
subset of data, not implemented yet.
Not implemented yet.
Not implemented yet.
For themoment equal to zero.
list of control parameters for the optimization.
oe
.