remp: Draws random values from the ECDF obtained from 'sample'

Description Usage Arguments Value References Examples

View source: R/empirical_cdf.R

Description

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

Usage

1

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

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

skewsamp documentation built on Dec. 17, 2021, 1:07 a.m.