This function checks whether the inputs have the correct format
check.functions(pnull, rnull, phat = function(x) -99, vals, x)
cdf under the null hypothesis
routine to generate data under the null hypothesis
=function(x) -99, function to estimate parameters from the data, or -99
vector of discrete values
data