preProcessX {modehunt}R Documentation

Prepare data vector according to available information on support endpoints of f

Description

Preprocesses the initial data vector X.raw according to whether the upper and/or lower endpoint of the support of f is known.

Usage

preProcessX(X.raw, lower = -Inf, upper = Inf)

Arguments

X.raw

Vector of observations.

lower

Lower support point of ff, if known.

upper

Upper support point of ff, if known.

Details

Depending whether lowerlower and upperupper are known, the vector of raw observations X.rawX.raw is supplemented by lowerlower and/or upperupper and finally sorted.

Value

Sorted vector of (processed) observations.

Note

This function is called by modeHunting, modeHuntingApprox, and modeHuntingBlock.

This function was derived from MatLab code provided on Lutz Duembgen's webpage,
http://www.staff.unibe.ch/duembgen.

Author(s)

Kaspar Rufibach, kaspar.rufibach@gmail.com,
http://www.kasparrufibach.ch

Guenther Walther, gwalther@stanford.edu,
www-stat.stanford.edu/~gwalther


[Package modehunt version 1.0.7 Index]