cdfU {geoCount}R Documentation

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.

Author(s)

Liang Jing ljing918@gmail.com

See Also

tranR

Examples

## 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)

[Package geoCount version 1.150120 Index]