cdfU {geoCount} | R Documentation |
This function approximates the CDF value for the observed data by using reference data.
cdfU(Y.obs, Y.rep, discrete = FALSE)
Y.obs |
a vector which indicates the observed data set |
Y.rep |
a matrix which indicates the reference data sets |
discrete |
a logical value which indicates if the variable is discrete |
A vector of CDF values.
Liang Jing ljing918@gmail.com
## Not run: Y.obs <- 11:20 res <- matrix(0, 10, 50) for(i in 1:50){ Y.rep <- matrix(rpois(10*5000, 15), 10, ) res[, i] <- cdfU(Y.obs, Y.rep) } matplot(t(res), type="l") abline(h = ppois(11:20, 15)) ## End(Not run)