bigPLSR now provides two complementary bootstrap
procedures:
Both approaches expose percentile and BCa confidence intervals, numerical summaries and plotting helpers.
We rely on a small multivariate example to illustrate the workflow.
boot_xy <- pls_bootstrap(X, Y, ncomp = 3, R = 50, type = "xy",
parallel = "none", return_scores = TRUE)
head(summarise_pls_bootstrap(boot_xy))A quick visual inspection of the coefficient distributions:
The conditional bootstrap operates on the latent score representation extracted from the baseline fit.
When return_scores = TRUE, the bootstrap result stores
the score matrices for each replicate. This allows for custom
diagnostics such as the dispersion of the first two latent
variables:
score_mats <- boot_xt$score_samples
score_means <- sapply(score_mats, function(M) colMeans(M)[1:2])
apply(score_means, 1, summary)You can feed individual score matrices into
plot_pls_individuals() to overlay confidence ellipses
obtained from the bootstrap draws.
Both bootstrap flavours honour the parallel = "future"
option. Configure your preferred plan before calling the helper:
Use the two bootstrap strategies to quantify the uncertainty of your PLS models. The (X, Y) variant mirrors the classic non-parametric bootstrap while the (X, T) option keeps the latent structure fixed for computational efficiency. The supplied summaries and plotting helpers provide starting points for more elaborate diagnostic workflows.