cdfU: Approximate the CDF Value from Reference Samples

Description Usage Arguments Value Author(s) See Also Examples

View source: R/checkingTRC.R

Description

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

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)

geoCount documentation built on May 2, 2019, 5:46 p.m.

Related to cdfU in geoCount...