lldr.inner: lldr.inner

Description Usage Arguments Value Examples

View source: R/lldr.R

Description

This calculates a single distribution regression for one value of y and one value of xmain

Usage

1
2
lldr.inner(xmain, y, Y, XMain, XOther = NULL, h = NULL,
  method = "level")

Arguments

xmain

a particular value for the "main" continuous x variable

y

a particular value of y to compute local linear distribution regression for

Y

a vector containing the data for the outcome

XMain

a vector containing the data for the "main" x variable

XOther

a matrix or data.frame containing the data for the "other" x variables

h

optional bandwidth

method

"level" or "rank" determining whether method should be used conditional on ytmin1 or the rank of ytmin1

Value

an llDR object

Examples

1
2
3
4
5
6
data(igm)
lcinc <- 10
Y <- igm$lcfincome
XMain <- igm$lfincome
XOther <- data.frame(COL=1*(igm$HEDUC=="COL"))
lldr.inner(lcinc, 10, Y, XMain, XOther)

TempleMetrics documentation built on May 2, 2019, 8:16 a.m.