| NWW | R Documentation | 
Computes the Nadaraya-Watson weights.
NWW(covariate, x, kernel = "gaussian", bw)
covariate | 
 Covariate values for obtaining weights.  | 
x | 
 Covariate value to compute the weight at.  | 
kernel | 
 A character string specifying the desired kernel. See details below for possible options. Defaults to "gaussian" where the gaussian density kernel will be used.  | 
bw | 
 A single numeric value to compute a kernel density bandwidth.  | 
Possible options for argument window are "gaussian", "epanechnikov", "tricube", "boxcar", "triangular", "quartic" or "cosine".
A vector with Nadaraya-Watson weights.
Luis Meira-Machado and Marta Sestelo
LLW
NWW(covariate = colonCS$age, x=40, kernel = "gaussian", bw = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.