power_cpp {R2sample}R Documentation

Find the power of various tests via permutation.

Description

Find the power of various tests via permutation.

Usage

power_cpp(
  rxy,
  nbins = as.integer(c(100, 10)),
  alpha = 0.05,
  B = 1000L,
  xparam = 0,
  yparam = 0,
  doMethod = as.character(c("chi large", "chi small", "t test", "KS", "Kuiper", "CvM",
    "AD", "LR", "ZA", "ZK", "ZC", "Wassp1"))
)

Arguments

rxy

a function that generates x and y data.

nbins

Two bin numbers for chi square test.

alpha

A numeric constant

B

Number of simulation runs.

xparam

arguments for r1.

yparam

arguments for r2.

doMethod

A character vector of methods to include.

Value

A numeric matrix of powers


[Package R2sample version 1.1.0 Index]