lm.sigma.conf: Confidence Functions for the Noise Standard Deviation of a...

Description Usage Arguments Value References Examples

View source: R/lm.R

Description

Confidence functions for the noise standard deviation of a linear model under Gaussian noise assumptions.

Usage

1
lm.sigma.conf(mod, plot = TRUE, conf.level = 0.95)

Arguments

mod

an output from lm

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 noise standard deviation, 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
# Prediction of body fat percentage from other body measurements.

data(fat)

mod <- lm(body.fat ~ age + weight + height, data = fat)

sigma.conf <- lm.sigma.conf(mod)

display.cconf(sigma.conf)

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