preprocess.data: Preprocess data to construct epiparameters.

Description Usage Arguments Details Value Author(s) See Also

Description

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

Usage

1
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).

Details

Data outside the bounds is discarded.

Value

List of epiparameters, with entries

data

Data as passed, with entries outside the bounds deleted

m0

Lower bound

mN

Upper bound

Author(s)

Sam Buttrey, from matlab code by Royset and Wets

See Also

expepi


episplineDensity documentation built on May 1, 2019, 7:28 p.m.