scb | R Documentation |
scb
is implemented as a front-end to locfit
,
to compute simultaneous confidence bands using the tube formula
method and extensions, based on Sun and Loader (1994).
scb(x, ..., ev = lfgrid(20), simul = TRUE, type = 1)
x |
A numeric vector or matrix of predictors (as in
|
... |
Additional arguments to |
ev |
The evaluation structure to use. See |
simul |
Should the coverage be simultaneous or pointwise? |
type |
Type of confidence bands. |
A list containing the evaluation points, fit, standard deviations and upper
and lower confidence bounds. The class is "scb"
; methods for
printing and ploting are provided.
Sun J. and Loader, C. (1994). Simultaneous confidence bands in linear regression and smoothing. The Annals of Statistics 22, 1328-1345.
Sun, J., Loader, C. and McCormick, W. (2000). Confidence bands in generalized linear models. The Annals of Statistics 28, 429-460.
locfit
, print.scb
, plot.scb
.
# corrected confidence bands for a linear logistic model
data(insect)
fit <- scb(deaths~lp(lconc,deg=1), type=4, w=nins,
data=insect,family="binomial",kern="parm")
plot(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.