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

View source: R/powerR.R

powerRR Documentation

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
)

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.

Value

A numeric vector of power values.


R2sample documentation built on June 17, 2025, 1:07 a.m.