Rdocumentation
powered by
Learn R Programming
NPC (version 1.1.0)
LogRank: Log-Rank Test Statistic
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
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