Use KernSmooth (one of the recommended packages that are included in R distribution). E.g.,
> library(KernSmooth) KernSmooth 2.23 loaded Copyright M. P. Wand 1997-2009 > x <- seq(0, 1, length=201) > y <- 4 * cos(2*pi*x) + rnorm(x) > f <- locpoly(x, y, degree=0, kernel="epan", bandwidth=.1) > plot(x, y) > lines(f, lwd=2) Andy -----Original Message----- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Ms khulood aljehani Sent: Tuesday, November 05, 2013 9:49 AM To: r-h...@stat.math.ethz.ch Subject: [R] FW: Nadaraya-Watson kernel From: aljehan...@hotmail.com To: r-help@r-project.org Subject: Nadaraya-Watson kernel Date: Tue, 5 Nov 2013 17:42:13 +0300 Hello i want to compute the Nadaraya-Watson kernel estimation when the kernel function is Epanchincov kernel i use the command ksmooth(x, y, kernel="normal", bandwidth ,....) the argmunt ( kernel="normal" ) accept normal and box kernels i want to compute it if the kerenl = Epanchincov thank you [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Notice: This e-mail message, together with any attachme...{{dropped:11}} ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.