This vignette shows how to run bootstrap standard errors in parallel using boot.ncpus and boot.parallel.
m <- '
X =~ x1 + x2 + x3
Z =~ z1 + z2 + z3
Y =~ y1 + y2 + y3
Y ~ X + Z + X:Z
'boot.parallel = "snow")Use "snow" on Windows (PSOCK clusters; similar to a “multisession” approach).
fit_win <- pls(
m,
data = oneIntOrdered,
ordered = colnames(oneIntOrdered),
bootstrap = TRUE,
boot.R = 500,
boot.ncpus = 2,
boot.parallel = "snow",
boot.iseed = 123
)
summary(fit_win)boot.parallel = "multicore")Use "multicore" on Linux (forking; not available on Windows).
fit_linux <- pls(
m,
data = oneIntOrdered,
ordered = colnames(oneIntOrdered),
bootstrap = TRUE,
boot.R = 500,
boot.ncpus = 2,
boot.parallel = "multicore",
boot.iseed = 123
)
summary(fit_linux)
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.