Learn R Programming

supportInt (version 1.1)

normLikSI: Normal support interval calculation.

Description

This function calculates support intervals for the mean of normal data. Confidence levels are calculate from the formula if conf=T.

Usage

normLikSI(dat, level, tol = 0.001, conf = F, B=500)

Arguments

dat
a numeric vector
level
support interval relative likelihood
tol
tolerance passed to uniroot for finding likelihood endpoints
conf
Logical, whether or not confidence levels should be returned.
B
Number of bootstrap iterations to verify coverage level

Value

Examples

Run this code
set.seed(10)
normLikSI(rnorm(10), 9)
normLikSI(rnorm(10), 9, conf=TRUE)

Run the code above in your browser using DataLab