Learn R Programming

R2sample (version 5.0.0)

power_newtest: Power for tests with p values

Description

This function estimates the power of test routines that calculate p value(s)

Usage

power_newtest(TS, f, xparam, yparam, TSextra, alpha = 0.05, B = 1000)

Value

A matrix of power values

Arguments

TS

routine to calculate test statistics.

f

routine that generates data.

xparam

values of first parameter under the alternative hypothesis.

yparam

values of second parameter under the alternative hypothesis.

TSextra

list passed to TS.

alpha

=0.05 type I error.

B

= 1000 number of simulation runs to estimate the power.