Skip to content
Back to formatted view

Raw Message

Message-ID: <D5FA03935F7418419332B61CA255F65FA5B857FC0B@USCTMXP51012.merck.com>
Date: 2013-11-07T14:06:49Z
From: Liaw, Andy
Subject: Nadaraya-Watson kernel
In-Reply-To: <DUB122-W16799739806241A7A7ADB385F10@phx.gbl>

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-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Ms khulood aljehani
Sent: Tuesday, November 05, 2013 9:49 AM
To: r-help at stat.math.ethz.ch
Subject: [R] FW: Nadaraya-Watson kernel

From: aljehani-k at hotmail.com
To: r-help at 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 at 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}}