R/simSample.R

Defines functions simSample

Documented in simSample

# ----------------------
# Author: Andreas Alfons
#         KU Leuven
# ----------------------

## convenience wrapper for 'setup'

simSample <- function(x, design = character(), grouping = character(), 
        collect = FALSE, fun = srs, size = NULL, 
        prob = NULL, ..., k = 1) {
    # define control object
    control <- SampleControl(design=design, grouping=grouping, 
        collect=collect, fun=fun, size=size, prob=prob, dots=list(...), k=k)
    # call 'setup'
    res <- setup(x, control)
    call <- match.call()
    setCall(res, call)
    res
}

Try the simFrame package in your browser

Any scripts or data that you put into this service are public.

simFrame documentation built on Oct. 14, 2021, 5:24 p.m.