# NOT RUN {
require(stats)
# Generating N(0,1)-data
set.seed(2017); n <- 80; d <- rnorm(n)
# Estimating f(x0) for one sigma-value
x0 <- 1
(fit <- kade(x = x0, data = d, method = "nonrobust", Sigma = 1))
# }
# NOT RUN {
# Estimating f(x0) for sigma-grid
x0 <- 1
(fit <- kade(x = x0, data = d, method = "nonrobust",
Sigma = seq(0.01, 10, length = 10), ticker = TRUE))
# }
# NOT RUN {
# Estimating f(x0) for sigma-grid and Old-Faithful-eruptions-data
x0 <- 2
(fit <- kade(x = x0, data = faithful$eruptions, method = "nonrobust",
Sigma = seq(0.01, 10, length = 51), ticker = TRUE, plot = TRUE))
# }
Run the code above in your browser using DataLab