Learn R Programming

geoCount (version 1.150120)

cdfU: Approximate the CDF Value from Reference Samples

Description

This function approximates the CDF value for the observed data by using reference data.

Usage

cdfU(Y.obs, Y.rep, discrete = FALSE)

Arguments

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

Value

A vector of CDF values.

See Also

tranR

Examples

Run this code
## 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)

Run the code above in your browser using DataLab