Description Usage Arguments Value Examples
This calculates a single distribution regression for one value of y and one value of xmain
1 2 | 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
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.