fitcox: Cox proportional hazards model

Description Usage Arguments Details Value See Also Examples

View source: R/fitcox.R

Description

fitcox fits a Cox proportional hazards model.

Usage

1
fitcox(formula, delta, data)

Arguments

formula

A formula object.

delta

Censoring indicator.

data

A data frame.

Details

The object returned has the attributes:

formula

The formula used to generate the model

delta

The column containing the censoring indicator

n

The total number of observations

n.events

The number of events i.e. uncensored observations

n.times

The number of distinct event times

event.times

The distinct event times

event.counts

The number of events taking place at each event time

h0

The baseline hazard at each event time

Value

An object of class fitcox.

See Also

summary.fitcox

Examples

1
fitcox(remission ~ sample, delta="censor", data=leukemia)

mathmonster/sta545package documentation built on Jan. 1, 2021, 9:20 a.m.