Learn R Programming

spatialEco (version 0.1-7)

plot.loess.boot: Plot Loess Bootstrap

Description

Plot function for loess.boot object

Usage

# S3 method for loess.boot
plot(x, ...)

Arguments

x
A loess.boot object
...
Additional arguments passed to plot

References

Cleveland, WS, (1979) Robust Locally Weighted Regression and Smoothing Plots Journal of the American Statistical Association 74:829-836 Efron, B., and R. Tibshirani (1993) An Introduction to the Bootstrap Chapman and Hall, New York Hardle, W., (1989) Applied Nonparametric Regression Cambridge University Press, NY. Tibshirani, R. (1988) Variance stabilization and the bootstrap. Biometrika 75(3):433-44.

Examples

Run this code
 n=1000
 x <- seq(0, 4, length.out=n)	 
 y <- sin(2*x)+ 0.5*x + rnorm(n, sd=0.5)
 sb <- loess.boot(x, y, nreps = 99, confidence = 0.90, span = 0.40)
 plot(sb)
                   

Run the code above in your browser using DataLab