gpe_sample: Sampling Function Generator for gpe

View source: R/gpe.R

gpe_sampleR Documentation

Sampling Function Generator for gpe

Description

Provides a sample function for gpe.

Usage

gpe_sample(sampfrac = 0.5)

Arguments

sampfrac

Fraction of n to use for sampling. It is the η / N in Friedman & Popescu (2008).

Value

Returns a function that takes an n argument for the number of observations and a weights argument for the case weights. The function returns a vector of indices.

References

Friedman, J. H., & Popescu, B. E. (2008). Predictive learning via rule ensembles. The Annals of Applied Statistics, 2(3), 916-954.

See Also

gpe


pre documentation built on June 11, 2022, 1:10 a.m.