powered by
the main function for running distribution regressions
distreg(formla, data, yvals, link = "logit")
y ~ x
the dataset
all the values of y to compute F(y|x)
which link function to use, it can be anything accepted by glm (for example, logit, probit, or cloglog), the default is "logit"
DR object
# NOT RUN { data(igm) y0 <- median(igm$lcfincome) distreg(lcfincome ~ lfincome + HEDUC, igm, y0) # }
Run the code above in your browser using DataLab