get_scaledsch: Extract scaled Schoenfeld residuals.

Description Usage Arguments Value

View source: R/coxph_utility.R

Description

Extract scaled Schoenfeld residuals from coxph object in tidy format.

Usage

1
get_scaledsch(fit, transform = "km")

Arguments

fit

the result of fitting a Cox regression model, using the coxph or coxme functions.

transform

a character string specifying how the survival times should be transformed before the test is performed. Possible values are "km", "rank", "identity" or a function of one argument.

Value

A tidy data frame containing the (transformed) time and scaled Schoenfeld residuals for the variables used in fit


adibender/ldatools documentation built on March 7, 2020, 5:30 a.m.