Learn R Programming

episplineDensity (version 0.0-1)

preprocess.data: Preprocess data to construct epiparameters.

Description

The epispline parameters are the data plus lower and upper bounds on the support of the estimated density.

Usage

preprocess.data(data, lower, upper)

Arguments

data
Numeric vector of data to be used in density estimation.
lower
Lower bound on density support. Default: if missing or NULL, the lower bound is taken to be min(x) - 2 * sd(x). If -inf, the lower bound is taken to be mean (x) - 10 * sd(x).
upper
Upper bound on density support. Default: if missing or NULL, the upper bound is taken to be max(x) + 2 * sd(x). If inf, the upper bound is taken to be mean (x) + 10 * sd(x).

Value

List of epiparameters, with entries
data
Data as passed, with entries outside the bounds deleted
m0
Lower bound
mN
Upper bound

Details

Data outside the bounds is discarded.

See Also

expepi