power_pvals: Power estimation of tests that find p values

View source: R/power_pvals.R

power_pvalsR Documentation

Power estimation of tests that find p values

Description

This function finds the power for tests that find their own p values

Usage

power_pvals(
  pnull,
  ralt,
  param_alt,
  TS,
  TSextra = list(aa = 0),
  alpha = 0.05,
  B = 1000
)

Arguments

pnull

cdf function

ralt

function that generates data

param_alt

parameters for ralt

TS

routine that runs the test and returns p values

TSextra

=list(aa=0), a list of things passed to TS, if needed

alpha

=0.05 type I error probability of test

B

=1000 number of simulation runs

Value

A matrix of power values


MDgof documentation built on Feb. 13, 2026, 1:06 a.m.