select {lgpr} | R Documentation |
Select relevant components
Description
-
select
performs strict selection, returning eitherTRUE
orFALSE
for each component. -
select.integrate
is likeselect
, but instead of a fixed threshold, computes probabilistic selection by integrating over a threshold density. -
select_freq
performs the selection separately using each parameter draw and returns the frequency at which each component was selected. -
select_freq.integrate
is likeselect_freq
, but instead of a fixed threshold, computes probabilistic selection frequencies by integrating over a threshold density.
Usage
select(fit, reduce = function(x) base::mean(x), threshold = 0.95, ...)
select_freq(fit, threshold = 0.95, ...)
select.integrate(
fit,
reduce = function(x) base::mean(x),
p = function(x) stats::dbeta(x, 100, 5),
h = 0.01,
verbose = TRUE,
...
)
select_freq.integrate(
fit,
p = function(x) stats::dbeta(x, 100, 5),
h = 0.01,
verbose = TRUE,
...
)
Arguments
fit |
An object of class |
reduce |
The |
threshold |
Threshold for relevance sum. Must be a value between 0 and 1. |
... |
Additional arguments to |
p |
A threshold density over interval [0,1]. |
h |
A discretization parameter for computing a quadrature. |
verbose |
Should this show a progress bar? |
Value
See description.