lmLikSI: Profile support intervals for lm coefficients

Description Usage Arguments Value Author(s) Examples

View source: R/lmLikSI.R

Description

Calculates profile likelihood intervals using data returned from the 'ProfileLikelihood' package for each coefficient of a lm.

Usage

1
lmLikSI(lm.mod, level)

Arguments

lm.mod

A fit lm object.

level

Desired level of support interval (1/level).

Value

a matrix of support intervals for each coefficient

Author(s)

Derek Smith

Examples

1
2
3
4
5
set.seed(10)
x <- rnorm(50, 0 , 5)
y <- sapply(1:length(x), function(z) 3+.5*x[z]+rnorm(1, 0, 5))
lm.obj <- lm(y~x)
lmLikSI(lm.obj, 8)

supportInt documentation built on May 29, 2017, 7:49 p.m.