permtests {clinfun}R Documentation

Permutation versions of some common tests

Description

Small sample tests using the permutation reference distributions.

Usage

  permlogrank(formula, data, subset, na.action, rho=0, nperm=5000)
  jonckheere.test(x, g, alternative = c("two.sided", "increasing",
                 "decreasing"))

Arguments

nperm number of permutations for the reference distribution
formula, data, subset, na.action, rho see survdiff for details
x, g data and group vector
alternative means are monotonic (two.sided), increasing, or decreasing

Details

permlogrank is the permutation version of k-sample survdiff

jonckheere.test is the exact (permutation) version of the Jonckheere-Terpstra test. It uses the statistic

sum_{k<l} sum_{ij} I(X_{ik} < X_{jl}) + 0.5 I(X_{ik} = X_{jl}),

where i, j are observations in groups k and l respectively. The asymptotic version is equivalent to cor.test(x, g, method="k").


[Package clinfun version 0.8.7 Index]