supportInt-package: Calculates Likelihood Support Intervals for Common Data Types

Description Author(s) Examples

Description

Calculates likelihood based support intervals for several common data types including binomial, Poisson, normal, lm(), and glm(). For the binomial, Poisson, and normal data likelihood intervals are calculated via root finding algorithm. Additional parameters allow the user to specify whether they would like to receive a parametric bootstrap estimate of the confidence level of said support interval. For lm() and glm(), the function returns profile likelihoods for each coefficient in the model.

Author(s)

Derek Smith

Maintainer: Derek Smith <derek.smith@vanderbilt.edu>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#Binomial data 
binLikSI(4, 10, 8)

#Poisson data returning the estimated confidence level
poisLikSI(4, 8, conf=TRUE)

#GLM coefficients
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.