powered by
Create trellis plots of a nonparametric function fit together with its (approximate) 95% Bayesian confidence intervals from a ssr/slm/snr/snm object.
# S3 method for bCI plot(x, x.val=NULL, type.name=NULL, ...)
an object of class "bCI" containing point evaluation of the unknown function and/or corresponding posterior standard devaitions.
an optional vector representing values of argument based on which the function is to evaluate.
an optional character vector specifying the names of fits.
options suitable for xyplot.
Chunlei Ke chunlei_ke@yahoo.com and Yuedong Wang yuedong@pstat.ucsb.edu
This function is to visualize a spline fit by use of trellis graphic facility with Bayesian confidence intervals superposed. Multi-panel plots, based on xyplot, are suitable for SS ANOVA decomposition of a spline estimate.
predict.ssr, intervals.slm, intervals.snr, intervals.snm
predict.ssr
intervals.slm
intervals.snr
intervals.snm
if (FALSE) { x<- seq(0, 1, len=100) y<- 2*sin(2*pi*x)+rnorm(x)*0.5 fit<- ssr(y~x, cubic(x)) p.fit<- predict(fit) plot(p.fit) plot(p.fit,type.name="fit") }
Run the code above in your browser using DataLab