glmLikSI: Profile support intervals for glm coefficients

Description Usage Arguments Value Author(s) Examples

View source: R/glmLikSI.R

Description

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

Usage

1
glmLikSI(glm.mod, level)

Arguments

glm.mod

A fit glm 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
6
7
set.seed(10)
x <- rnorm(50, 0 , 5)
expit <- function(z) exp(z)/(1+exp(z))
p <- expit(.1+ .4*x)
y <- sapply(1:length(p), function(z) rbinom(1,1, p[z]))
glm.obj <- glm(y~x, family="binomial")
glmLikSI(glm.obj, 8)

supportInt documentation built on May 2, 2019, 6:32 a.m.