glm.lincom.conf: Confidence Functions for the Expected Response of a GLM...

Description Usage Arguments Value References Examples

View source: R/glm.R

Description

Confidence functions for the expected response of a GLM without dispersion.

Usage

1
glm.lincom.conf(mod, x, plot = TRUE, conf.level = 0.95)

Arguments

mod

an output from glm

x

a vector containing the predictor values for which the expected response is desired

plot

whether to plot the confidence density and curve

conf.level

the confidence level for the confidence interval indicated on the confidence curve

Value

A list containing the confidence functions pconf, dconf, cconf, and qconf for the expected response at x, as well as the P-curve and S-curve.

References

Tore Schweder and Nils Lid Hjort. Confidence, likelihood, probability. Vol. 41. Cambridge University Press, 2016.

Examples

1
2
3
4
5
6
7
8
9
# Low birth weight example from page 38 of *Confidence, Likelihood, Probability*,

data(lbw)

mod <- glm(low ~ weight + age + black + other + smoker, data = lbw, family = binomial)

x.black <- c(1, 50, 23.238, 1, 0, 1)

pred.black <- glm.lincom.conf(mod, x.black)

ddarmon/clp documentation built on Jan. 25, 2021, 6:22 p.m.