Learn R Programming

Rgof (version 3.1.0)

power_disc: find power of gof tests for continuous data

Description

find power of gof tests for continuous data

Usage

power_disc(
  pnull,
  rnull,
  vals,
  ralt,
  param_alt,
  phat,
  TS,
  typeTS,
  TSextra,
  B = 1000L
)

Value

A matrix of powers

Arguments

pnull

R function (cdf)

rnull

R function (generate data under null hypothesis)

vals

values of discrete distribution

ralt

R function to generate data under alternative

param_alt

parameters of ralt

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

=1000 Number of simulation runs