Learn R Programming

R2sample (version 4.0.1)

powerR: Find the power of two sample tests using Rcpp and parallel computing.

Description

Find the power of two sample tests using Rcpp and parallel computing.

Usage

powerR(
  rxy,
  xparam,
  yparam,
  TS,
  typeTS,
  TSextra,
  alpha = 0.05,
  B = 1000,
  SuppressMessages,
  maxProcessor
)

Value

A numeric vector of power values.

Arguments

rxy

function to generate a list with data sets x, y and (optional) vals, weights

xparam

first argument passed to rxy

yparam

second argument passed to rxy

TS

test statistic

typeTS

which format has TS?

TSextra

list of items passed TS

alpha

=0.05, the level of the hypothesis test

B

= 1000 number of simulation runs

SuppressMessages

= FALSE print informative messages?

maxProcessor

maximum number of cores to use. If maxProcessor=1 no parallel computing is used.