LIvRatio: Likelihood Interval of the ratio of two variances from two...

View source: R/LIvRatio.R

LIvRatioR Documentation

Likelihood Interval of the ratio of two variances from two groups

Description

Likelihood interval of the ratio of two variances from two groups assuming normal distribution. Likelihood interval usually gives a narrower interval when the likelihood function is asymmetric.

Usage

  LIvRatio(x, y, k, conf.level=0.95)

Arguments

x

observations from the first group, the test group, used for the numerator

y

observations from the second group, the control group, used for the denominator

k

1/k likelihood interval will be provided

conf.level

approximate confidence level

Details

It calculates likelihood interval of the ratio of two variances from two groups. Likelihood interval usually gives a narrower interval when the likelihood function is asymmetric.

Value

PE

maximum likelihood estimate on the ratio

LL

lower limit of likelihood interval

UL

upper limit of likelihood interval

logk

log(k) value used for LI

maxLL

maximum log likelihood

conf.level

approximate confidence level

Author(s)

Kyun-Seop Bae k@acr.kr

Examples

  LIvRatio(mtcars$drat, mtcars$wt)
  var.test(mtcars$drat, mtcars$wt)
  LIvRatio(mtcars$qsec, mtcars$wt)
  var.test(mtcars$qsec, mtcars$wt)
  LIvtest(sd(mtcars$qsec), nrow(mtcars), sd(mtcars$wt), nrow(mtcars))

LBI documentation built on Aug. 21, 2025, 5:53 p.m.