Learn R Programming

eha (version 2.8.1)

tpchreg: Proportional hazards regression with piecewise constant hazards and tabular data.

Description

Proportional hazards regression with piecewise constant hazards and tabular data.

Usage

tpchreg(
  formula,
  data,
  time,
  pieces,
  subset,
  na.action,
  contrasts = NULL,
  start.coef = NULL,
  control = list(epsilon = 1e-08, maxit = 200, trace = FALSE)
)

Arguments

formula

a formula with 'oe(count, exposure) ~ x1 + ...'

data

a data frame with event, exposure, age plus covariates

time

the time variable, a factor indicating time intervals.

pieces

numeric vector of length 1 or length(levels(time)): The length(s) of timeintervals.

subset

subset of data, not implemented yet.

na.action

Not implemented yet.

contrasts

Not implemented yet.

start.coef

For themoment equal to zero.

control

list of control parameters for the optimization.

See Also

oe.