coef.fitcox: Extract the coefficients for a fitted Cox model

Description Usage Arguments Details Value Examples

View source: R/fitcox.R

Description

Extract the coefficients for a fitted Cox model

Usage

1
2
## S3 method for class 'fitcox'
coef(model)

Arguments

model

A fitcox object returned by the fitcox function.

Details

Coefficient details include:

beta

The value of the coefficient

beta.se

Standard error for the coefficient

beta.lower

Lower bound of 95% confidence interval

beta.upper

Upper bound of 95% confidence interval

z

Wald statistic i.e. beta/beta.se

p

p-value for the Wald statistic

Value

A dataframe with one row per coefficient

Examples

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

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