LogRank: Log-Rank Test Statistic

Description Usage Arguments Value Author(s)

Description

Calculates the difference of means between two groups of observations. The result is intended to be used as a test statistic in a permutation test.

Usage

1
LogRank(y, tr, tl, event, block, ...)

Arguments

y

Response variable, typically a duration (vector)

tr

Treatment variable (vector)

tl

The level of treatment variable (e.g., "treated" or 1) that indicates treated observations

event

Status variable indicating for each observation whether y was censored (0 or FALSE) or observed (1 or TRUE).

block

Block or stratification variable (vector)

...

Additional arguments (included for compatibility but ignored)

Value

A scalar test statistic

Author(s)

Devin Caughey <devin.caughey@gmail.com>


NPC documentation built on May 2, 2019, 5:07 a.m.

Related to LogRank in NPC...