Learn R Programming

Rearrangement (version 2.1)

lplm: Local Linear Regression Methods for Conditional Mean Functions

Description

Implements the local nonparametric method, local linear regression estimator with box kernel (default), for conditional mean functions.

Usage

lplm(x, y, h, xx)

Arguments

x
The conditioning covariate
y
The response variable
h
The bandwidth parameter
xx
The points at which the function is to be estimated

Value

xx
The design points at which the evaluation occurs
fitted.values
The estimated function values at these design points

Details

The function uses a box kernel.

Examples

Run this code
data(GrowthChart)
attach(GrowthChart)

ages <- unique(sort(age))
lplm.fit1 <- lplm(age,height,h=1,xx=ages)

detach(GrowthChart)

Run the code above in your browser using DataLab