# NOT RUN {
## generate sample data
X = aux.gensamples(n=200)
## use different kernel bandwidth
out1 <- do.kudp(X, bandwidth=0.1)
out2 <- do.kudp(X, bandwidth=10)
out3 <- do.kudp(X, bandwidth=1000)
## visualize
opar <- par(no.readonly=TRUE)
par(mfrow=c(1,3))
plot(out1$Y, main="bandwidth=0.1")
plot(out2$Y, main="bandwidth=10")
plot(out3$Y, main="bandwidth=1000")
par(opar)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab