Reuses the supports, local charts, prediction supports, averaging weights,
selected degree, and local-solver controls from an existing
fit.malps object, then repeatedly calls
refit with bootstrap-style case weights. This is a
fixed-selection uncertainty diagnostic: it measures refit variability
conditional on the fitted MALPS support profile and does not rerun
cross-validation or rebuild supports in each replicate.
Arguments
- object
- B
Number of successful bootstrap replicates requested.
- weight.type
Bootstrap weight generator, one of
"bayesian"or"multinomial".- y
Optional response vector. Defaults to
object$y.- probs
Optional nonnegative sampling probabilities for
weight.type = "multinomial".- conf.level
Pointwise interval level used in the returned summary.
- seed
Optional integer seed for reproducible bootstrap weights.
- max.failures
Maximum failed refit attempts allowed before stopping.
- keep.weights
Logical; store the generated bootstrap weights in the returned object.
- verbose
Logical; emit progress messages every ten successful replicates.
- ...
Reserved for future extensions.
Value
A list of class "malps_bootstrap" containing:
replicate.fitted.values: an \(n \times B\) matrix of successful replicate fitted values;replicate.weights: an optional \(n \times B\) matrix of bootstrap weights whenkeep.weights = TRUE;failures: a data frame with columnsattempt,failure, andmessage;summary: pointwise fitted values, bootstrap summaries, and empirical lower/upper intervals;bootstrap metadata such as
B.completed,n.failures,conf.level, andweight.type.
Details
Two weight generators are available. "bayesian" draws positive
exponential weights and rescales them to have mean one. This is the default
because it preserves positive local support weights and therefore avoids many
local-support degeneracies. "multinomial" draws ordinary
nonparametric bootstrap counts with total count nrow(object$X); this
can fail when a replicate assigns zero weight to all observations in a local
support, and such failures are recorded.