distreg: distreg

Description Usage Arguments Value Examples

Description

the main function for running distribution regressions

Usage

1
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

1
2
3
data(igm)
y0 <- median(igm$lcfincome)
distreg(lcfincome ~ lfincome + HEDUC, igm, y0)

bcallaway11/TempleMetrics documentation built on May 24, 2019, 3:03 a.m.