Description Usage Arguments Value Details See Also Examples
View source: R/DCS_MainFunctions.R
Set Options for the DCS procedure
1 2 3 4 5 6 7 | set.options(
type = "LP",
kerns = c("MW_220", "MW_220"),
drv = c(0, 0),
var_model = "iid",
...
)
|
type |
either local polynomial regression ( |
kerns |
a character vector of length 2 containing the identifier for the
kernels to be used in kernel regression. Weighting functions in local
polynomial regression are computed according to the identifier. Default value
is |
drv |
A non-negative vector of length 2, containing the derivative
orders to be estimated from the given data. The default is |
var_model |
the method of estimating the variance coefficient c_f.
Currently available are |
... |
Additional arguments passed to |
An object of class "dcs_options"
.
This function is used to set the options for bandwidth selection in the
dcs
function.
Detailed information can be found in the vignette.
1 2 3 4 5 6 7 | # See vignette("DCSmooth") for examples and explanation
set.options()
myOpt <- set.options(type = "KR", var_model = "iid")
y <- y.norm1 + matrix(rnorm(101^2), nrow = 101, ncol = 101)
dcs(y, dcs_options = myOpt)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.