gof_disc {Rgof} | R Documentation |
run gof tests for discrete data
gof_disc(x, pnull, rnull, vals, phat, TS, rate = 0, B = 5000L)
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 |
A matrix of numbers