Last chance! 50% off unlimited learning
Sale ends in
Computes the Nadaraya-Watson weights.
NWW(covariate, x, kernel = "gaussian", bw)
Covariate values for obtaining weights.
Covariate value to compute the weight at.
A character string specifying the desired kernel. See details below for possible options. Defaults to "gaussian" where the gaussian density kernel will be used.
A single numeric value to compute a kernel density bandwidth.
A vector with Nadaraya-Watson weights.
Possible options for argument window are "gaussian", "epanechnikov", "tricube", "boxcar", "triangular", "quartic" or "cosine".
# NOT RUN {
NWW(covariate = colonIDM$age, x=40, kernel = "gaussian", bw = 3)
# }
Run the code above in your browser using DataLab