lldr.inner.Rd
This calculates a single distribution regression for one value of y and one value of xmain
lldr.inner(xmain, y, Y, XMain, XOther = NULL, h = NULL, method = "level")
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 |
an llDR object
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)#> $y #> [1] 10 #> #> $t #> [1] 10 #> #> $thet #> [,1] #> [1,] 0.01586159 #> [2,] 0.06243970 #> [3,] 0.00000000 #> #> attr(,"class") #> [1] "llDR"