powered by
Local linear fit with Epanechnikov kernel
LocalLm(Xint, Xvec, Yvec, bw, Wt = 1)
a vector of x interval to generate the local linear fit
numeric vectors of data values, Xvec and Yvec must have the same length.
a bandwidth of the kernel
a weight vector
# NOT RUN { 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)) # }
Run the code above in your browser using DataLab