Learn R Programming

npmlda (version 1.0.0)

LocalLm: Local linear fit with Epanechnikov kernel

Description

Local linear fit with Epanechnikov kernel

Usage

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

Run this code
# 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