extract_z function

Extracting the z-statistic from a survival object

Extracting the z-statistic from a survival object

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

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.

Returns

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

Methods (by class)

  • extract_z(survdiff): Method for survdiff
  • extract_z(coxph): Method for coxph objects
  • extract_z(survreg): Method for survreg objects

Author(s)

Simon Bond

  • Maintainer: Simon Bond
  • License: GPL-2
  • Last published: 2024-03-12

Useful links