Learn R Programming

TempleMetrics (version 1.2.0)

distreg: distreg

Description

the main function for running distribution regressions

Usage

distreg(formla, data, yvals, link = "logit")

Arguments

formla

y ~ x

data

the dataset

yvals

all the values of y to compute F(y|x)

link

which link function to use, it can be anything accepted by glm (for example, logit, probit, or cloglog), the default is "logit"

Value

DR object

Examples

Run this code
# NOT RUN {
data(igm)
y0 <- median(igm$lcfincome)
distreg(lcfincome ~ lfincome + HEDUC, igm, y0)

# }

Run the code above in your browser using DataLab