powered by
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")
a particular value for the "main" continuous x variable
a particular value of y to compute local linear distribution regression for
a vector containing the data for the outcome
a vector containing the data for the "main" x variable
a matrix or data.frame containing the data for the "other" x variables
optional bandwidth
"level" or "rank" determining whether method should be used conditional on ytmin1 or the rank of ytmin1
an llDR object
# NOT RUN { 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) # }
Run the code above in your browser using DataLab