Learn R Programming

Rgof (version 3.1.0)

gof_disc: run gof tests for discrete data

Description

run gof tests for discrete data

Usage

gof_disc(x, pnull, rnull, vals, phat, TS, typeTS, TSextra, rate = 0, B = 5000L)

Value

A matrix of numbers

Arguments

x

an integer vector of counts

pnull

cumulative distribution function under the null hypothesis

rnull

R function (generate data under null hypothesis)

vals

numeric vector of values of discrete random variables.

phat

function to estimate parameters

TS

function that calculates test statistics

typeTS

type of test statistic

TSextra

list passed to TS, if desired

rate

=0, rate of sample size, if random

B

(=5000) Number of simulation runs