Last data update: 2014.03.03

R: Local Linear Regression Methods for Conditional Mean...
lplmR Documentation

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

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

data(GrowthChart)
attach(GrowthChart)

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

detach(GrowthChart)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(Rearrangement)
Loading required package: quantreg
Loading required package: SparseM

Attaching package: 'SparseM'

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

    backsolve

Loading required package: splines
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/Rearrangement/lplm.Rd_%03d_medium.png", width=480, height=480)
> ### Name: lplm
> ### Title: Local Linear Regression Methods for Conditional Mean Functions
> ### Aliases: lplm
> ### Keywords: regression
> 
> ### ** Examples
> 
> data(GrowthChart)
> attach(GrowthChart)
> 
> ages <- unique(sort(age))
> lplm.fit1 <- lplm(age,height,h=1,xx=ages)
> 
> detach(GrowthChart)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>