powered by
the main function for running "local" distribution regressions. This function runs a local regression that is local for a single (scalar) continuous treatment variable. It also allows for other variables but it does not smooth over these variables.
lldistreg(formla, xformla = NULL, data, yvals, tvals, link = "logit", cl = 1)
y ~ t , t must be a single continuous variable
~x, x are other (non-smoothed) variables included in the model
the dataset
all the values of y to compute F(y|t,x)
the values of the continuous treatment to comput F(y|t,x)
which link function to use, it can be anything accepted by glm (for example, logit, probit, or cloglog), the default is "logit"
the number of clusters to use, default is 1
a list of llDR objects that are indexed by the values in yvals and tvals
# NOT RUN { data(igm) lldistreg(lcfincome ~ lfincome, ~HEDUC, igm, 10, 10) # }
Run the code above in your browser using DataLab