power_cont: find power of gof tests for continuous data

View source: R/RcppExports.R

power_contR Documentation

find power of gof tests for continuous data

Description

find power of gof tests for continuous data

Usage

power_cont(
  pnull,
  rnull,
  qnull,
  ralt,
  param_alt,
  w,
  phat,
  TS,
  typeTS,
  TSextra,
  B = as.integer(c(1000, 1000)),
  alpha = 0.05
)

Arguments

pnull

R function (cdf)

rnull

R function (generate data under null hypothesis)

qnull

R function (quantiles under null hypothesis)

ralt

R function to generate data under alternative

param_alt

parameters of ralt

w

(Optional) function to calculate weights, returns -99 if no weights

phat

function to estimate parameters from the data

TS

function to calculate test statistics

typeTS

integer indicating type of test statistic

TSextra

list to pass to TS

B

=c(1000, 1000) Number of simulation runs for power and null distribution

alpha

=0.05, type I error of test

Value

A matrix of powers


Rgof documentation built on Oct. 9, 2024, 1:06 a.m.