LocalLm function

Local linear fit with Epanechnikov kernel

Local linear fit with Epanechnikov kernel

LocalLm(Xint, Xvec, Yvec, bw, Wt = 1)

Arguments

  • Xint: a vector of x interval to generate the local linear fit
  • Xvec, Yvec: numeric vectors of data values, Xvec and Yvec must have the same length.
  • bw: a bandwidth of the kernel
  • Wt: a weight vector

Examples

data(BMACS) Time.int<- seq(0.1,5.9, by=0.1) LocalFit.Y <- with(BMACS, LocalLm(Time.int, Time, CD4, bw=0.9, Wt=1))
  • Maintainer: Xin Tian
  • License: GPL (>= 2)
  • Last published: 2018-02-12