delta.calculate {SurrogateRank} | R Documentation |
Calculates the rank-based test statistic for Y and S and the difference, delta
Description
Calculates the rank-based test statistic for Y and the rank-based test statistic for S and the difference, delta, along with corresponding standard error estimates
Usage
delta.calculate(full.data = NULL, yone = NULL, yzero = NULL, sone = NULL, szero = NULL)
Arguments
full.data |
either full.data or yone, yzero, sone, szero must be supplied; if full data is supplied it must be in the following format: one observation per row, Y is in the first column, S is in the second column, treatment group (0 or 1) is in the third column. |
yone |
primary outcome, Y, in group 1 |
yzero |
primary outcome, Y, in group 0 |
sone |
surrogate marker, S, in group 1 |
szero |
surrogate marker, S, in group 0 |
Value
u.y |
rank-based test statistic for Y |
u.s |
rank-based test statistic for S |
delta |
difference, u.y-u.s |
sd.u.y |
standard error estimate of u.y |
sd.u.s |
standard error estimate of u.s |
sd.delta |
standard error estimate of delta |
Author(s)
Layla Parast
Examples
data(example.data)
delta.calculate(yone = example.data$y1, yzero = example.data$y0, sone = example.data$s1,
szero = example.data$s0)
[Package SurrogateRank version 1.0 Index]