distreg: distreg

Description Usage Arguments Value Examples

View source: R/TempleMetrics.R

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)

TempleMetrics documentation built on May 2, 2019, 8:16 a.m.