R Under development (unstable) (2024-07-10 r86888 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > ## Regression tests for `simpleboot'. > ## Added 2004-10-15 > > library(simpleboot) Simple Bootstrap Routines (1.1-8) > > set.seed(1234) > x <- runif(100) > > ## Simple sine function simulation > y <- sin(2*pi*x) + .2 * rnorm(100) > lo <- loess(y ~ x, span = .4) > > ## Bootstrap with resampling of rows > lo.b <- loess.boot(lo, R = 500) > > ## Purposely mask the sd() function; plot.loess.simpleboot() should > ## get sd() from the `stats' package namespace > sd <- function(...) { stop("error") } > > doPlot <- function() { + postscript("plot-loess-test.eps", height = 7, width = 7) + on.exit(dev.off()) + + ## Plot original fit with +/- 2 std. errors + plot(lo.b) + } > > doPlot() > > unlink("plot-loess-test.eps") > > proc.time() user system elapsed 1.26 0.10 1.36