power_cont_R: Find the power of various gof tests for continuous data.

View source: R/power_cont_R.R

power_cont_RR Documentation

Find the power of various gof tests for continuous data.

Description

Find the power of various gof tests for continuous data.

Usage

power_cont_R(
  pnull,
  rnull,
  ralt,
  param_alt,
  phat = function(x) -99,
  TS,
  typeTS,
  TSextra,
  alpha = 0.05,
  B = 1000,
  maxProcessor
)

Arguments

pnull

function to find cdf under null hypothesis

rnull

function to generate data under null hypothesis

ralt

function to generate data under alternative hypothesis

param_alt

vector of parameter values for distribution under alternative hypothesis

phat

=function(x) -99, function to estimate parameters from the data, or -99 if no parameters are estimated

TS

user supplied function to find test statistics, if any

typeTS

format of TS routine

TSextra

list provided to TS

alpha

=0.05, the level of the hypothesis test

B

=1000 number of simulation runs

maxProcessor

maximum of number of processors to use, 1 if no parallel processing is needed or number of cores-1 if missing

Value

A numeric matrix of power values


Rgof documentation built on April 3, 2025, 10:52 p.m.