LocalLm: Local linear fit with Epanechnikov kernel

Description Usage Arguments Examples

Description

Local linear fit with Epanechnikov kernel

Usage

1
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

1
2
3
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))

npmlda documentation built on May 2, 2019, 12:54 a.m.

Related to LocalLm in npmlda...