lplm: Local Linear Regression Methods for Conditional Mean...

Description Usage Arguments Details Value Author(s) Examples

Description

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

Usage

1
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

Details

The function uses a box kernel.

Value

xx

The design points at which the evaluation occurs

fitted.values

The estimated function values at these design points

Author(s)

Wesley Graybill, Mingli Chen, Victor Chernozhukov, Ivan Fernandez-Val, Alfred Galichon

Examples

1
2
3
4
5
6
7
data(GrowthChart)
attach(GrowthChart)

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

detach(GrowthChart)

Example output

Loading required package: quantreg
Loading required package: SparseM

Attaching package: 'SparseM'

The following object is masked from 'package:base':

    backsolve

Loading required package: splines

Rearrangement documentation built on May 1, 2019, 11:29 p.m.