gof_disc {Rgof}R Documentation

run gof tests for discrete data

Description

run gof tests for discrete data

Usage

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

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

rate

=0 rate of Poisson if sample size is random, 0 otherwise.

B

(=5000) Number of simulation runs

Value

A matrix of numbers


[Package Rgof version 1.2.2 Index]