cox.zphSLMADS: Tests the proportional hazards assumption of a Cox...

View source: R/cox.zphSLMADS.R

cox.zphSLMADSR Documentation

Tests the proportional hazards assumption of a Cox proportional hazards model that has been fit and saved serverside.

Description

Tests the proportional hazards assumption of a Cox proportional hazards that has been fit and saved on the server side environment.

Usage

cox.zphSLMADS(
  fit = NULL,
  transform = "km",
  terms = TRUE,
  singledf = FALSE,
  global = TRUE
)

Arguments

fit

character string specifying name of fit Cox proportional hazards model saved in the server-side.

transform

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.

terms

logical if TRUE, do a test for each term in the model rather than for each separate covariate. For a factor variable with k levels, for instance, this would lead to a k-1 degree of freedom test. The plot for such variables will be a single curve evaluating the linear predictor over time.

singledf

logical use a single degree of freedom test for terms that have multiple coefficients, i.e., the test that corresponds most closely to the plot. If terms=FALSE this argument has no effect.

global

logical should a global chi-square test be done, in addition to the per-variable or per-term tests tests.

Details

Serverside aggregate function cox.zphSLMADS called by clientside function. ds.cox.zphSLMA. returns diagnostics for the test of proportional hazards assumptions from a Cox proportional hazards model. This request is not disclosive as it only returns summary statistics. For further details see help for ds.cox.zphSLMA function.

Value

diagnostics for the Cox proportional hazards from the server side environment.

Author(s)

Soumya Banerjee and Tom Bishop (2020).


neelsoumya/dsSurvival documentation built on July 1, 2023, 10:31 p.m.