coxph-utils: Extract LRS or p-values from coxph object

Description Usage Arguments Details Value Note Author(s) Examples

Description

Extract LRS or p-values from coxph object

Usage

1
2
3
4
5
  lrt.coxph(x, digits = options()$digits, ...)

  lrt_pvalue.coxph(x, digits = options()$digits, ...)

  coef_pvalue.coxph(x, digits = options()$digits, ...)

Arguments

x

a coxph object

digits

the number of digits to print

...

currently unused

Details

lrt.coxph: Extract the log ratio test statistic from the overall Cox Proportional-hazards model fit.

lrt_pvalue.coxph: Extract the log ratio test Pvalue from the overall Cox Proportional-hazards model fit.

coef_pvalue.coxph: Extract the pvalue from each coefficient in x

Value

lrt.coxph: numeric(1), the Likelihood ratio test statistic

lrt_pvalue.coxph: numeric(1), the p-value from the Likelihood ratio test statistic

coef_pvalue.coxph: numeric: the p-value from each coefficient in the coxph object

Note

Code derived from the survival:::print.coxph method

Author(s)

Mark Cowley, 2011-09-02

Mark Cowley, 2011-09-02

Examples

1
2
3
4
5
6
7
8
9
# lrt.coxph
## Not run: 
 cph.res <- coxph(Surv(...) ~ a)
	lrt.coxph(cph.res)
	lrt_pvalue.coxph(cph.res)
 # [1] 0.0197
	coef_pvalue.coxph(cph.res)

## End(Not run)

drmjc/mjcstats documentation built on May 15, 2019, 2:41 p.m.