Learn R Programming

supportInt (version 1.1)

lmLikSI: Profile support intervals for lm coefficients

Description

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

Usage

lmLikSI(lm.mod, level)

Arguments

lm.mod
A fit lm object.
level
Desired level of support interval (1/level).

Value

Examples

Run this code
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)

Run the code above in your browser using DataLab