peto.wilcoxon {ANSM5} | R Documentation |
Perform Peto-Wilcoxon test
Description
peto.wilcoxon()
performs the Peto-Wilcoxon test and is used in chapter 9 of "Applied Nonparametric Statistical Methods" (5th edition)
Usage
peto.wilcoxon(
x,
y,
x.c,
y.c,
alternative = c("two.sided", "less", "greater"),
max.exact.perms = 1e+05,
nsims.mc = 10000,
seed = NULL
)
Arguments
x |
Numeric vector of same length as y, x.c, y.c |
y |
Numeric vector of same length as x, x.c, y.c |
x.c |
Binary vector of same length as x, y, x.c |
y.c |
Binary vector of same length as x, y, y.c |
alternative |
Type of alternative hypothesis (defaults to |
max.exact.perms |
Maximum number of permutations allowed for exact calculations (defaults to |
nsims.mc |
Number of Monte Carlo simulations to be performed (defaults to |
seed |
Random number seed to be used for Monte Carlo simulations (defaults to |
Value
An ANSMtest object with the results from applying the function
Examples
# Example 9.4 from "Applied Nonparametric Statistical Methods" (5th edition)
peto.wilcoxon(ch9$sampleI.survtime, ch9$sampleII.survtime,
ch9$sampleI.censor, ch9$sampleII.censor, alternative = "less")
[Package ANSM5 version 1.1.0 Index]