scb.mean(x, y, bandwidth, level = 0.95, scbtype = c("normal", "bootstrap", "both", "no"), gridsize, keep.y = TRUE, nrep = NULL, nboot = NULL, parallel = c("no", "multicore", "snow"), ncpus = getOption( "boot.ncpus", 1L), cl = NULL)x must be a uniform grid; missing values are not accepted.
y must match the length of x. Missing values are not accepted.TRUE, keep y in the result.
parallel = "multicore".
parallel = "snow".
"SCBand". To accommodate the different functions creating objects of this class (scb.mean, scb.model, and scb.equality), some components of the object are set to NULL. The component list is:xykeep.y is TRUE, else NULL.callmodelNULL.parNULL.nonparbandwidth.level.type.NULL.NULL.NULL.gridsize if nonnull, else length(x).nrep.nboot.scbtype, some of
the fields qnorm, normscb, nrep, qboot, normboot and nboot may be NULL.
locpoly function.
Bootstrap SCB are implemented with the boot function and the
typically require more computation time than normal SCB. If parallel computing is used while running R from the console, errors may occur. It may be safer to perform parallel computations using R from the command line.
scb.equal, scb.model
## Not run:
# ## Plasma citrate data
# data(plasma)
# time <- 8:21
# h <- cv.select(time, plasma, 1, c(.5, 1))
# scbplasma <- scb.mean(time, plasma, bandwidth = h, scbtype = "both", gridsize = 100)
# scbplasma
# plot(scbplasma, cex = .2, legend.cex = .85, xlab = "Time", ylab = "Concentration",
# main = "Plasma citrate data")
# ## End(Not run)
Run the code above in your browser using DataLab