remp {skewsamp}R Documentation

Draws random values from the ECDF obtained from sample

Description

Based on the empirical cumulative density function as presented by Chakraborti (2006).

Usage

remp(n, sample)

Arguments

n

integer, number of samples to be drawn

sample

numeric vector of sample values to base the ECDF on

Value

numeric vector of random values drawn from the ECDF

References

Chakraborti, S., Hong, B., & Van De Wiel, M. A. (2006). A note on sample size determination for a nonparametric test of location. Technometrics, 48(1), 88–94. https://doi.org/10.1198/004017005000000193

Examples

x <- 1:5
remp(10, x)

[Package skewsamp version 1.0.0 Index]