extract_z {rpsftm}R Documentation

Extracting the z-statistic from a survival object

Description

Generic S3 methods to extract the z-statistic from a set of survival fit objects

Usage

extract_z(fit, ...)

## S3 method for class 'survdiff'
extract_z(fit, ...)

## S3 method for class 'coxph'
extract_z(fit, arm, ...)

## S3 method for class 'survreg'
extract_z(fit, arm, ...)

Arguments

fit

a fitted survival object : survdiff, coxph, survreg

...

extendible arguments to the S3 method

arm

a character vector giving the name of the covariate representing the treatment arm.

Value

a numeric value, the z statistic for the independence test of the treatment arm

Methods (by class)

Author(s)

Simon Bond


[Package rpsftm version 1.2.9 Index]