RcmdrPlugin.EZR (version 1.33)

Mantel.Byar: mantel-Byar test

Description

Performs Mantel-Byar test for comparison of survival data with a time-dependent covariate.

Usage

Mantel.Byar(Group = TempTD$covariate_td, Event = TempTD$endpoint_td, StartTime = TempTD$start_td, StopTime = TempTD$stop_td, method = c("SAS", "Tominaga"), plot=0, landmark=0)

Arguments

Group
Time-dependent covariate.
Event
a vector for event.
StartTime
a vector for starting time.
StopTime
a vector for stopping time.
method
method for analysis. "SAS" or "Tominaga"
plot
plot=1, 2, or 3 to plot Simon and Makuch survival curves. Line discrimination with colors (plot=1), line types (plot=2), or width (plot=3).
landmark
landmark for Simon and Makuch plot.

Details

Performs Mantel-Byar test for comparison of survival data with a time-dependent covariate. This function should be performed after executing "Cox proportional hazard modeling with time-dependent covariate" from the EZR menu. If plot is set to 1, Simon and Makuch plot is drawn with a landmark as specified.