Learn R Programming

LBI (version 0.2.0)

LIvar: 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

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

Value

v1

variance of the first group

v2

variance of the second group

PE

point estimation for the proportion

LL

lower limit of likelihood interval

UL

upper limit of likelihood interval

logk

log(k) value

maxLL

maximum log likelihood

Arguments

x

observations from the first group, used for the numerator

y

observations from the second group, used for the denominator

k

1/k likelihood interval will be provided

conf.level

approximate confidence level

Author

Kyun-Seop Bae k@acr.kr

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.

Examples

Run this code
  LIvar(mtcars$drat, mtcars$wt)
  var.test(mtcars$drat, mtcars$wt)
  LIvar(mtcars$qsec, mtcars$wt)
  var.test(mtcars$qsec, mtcars$wt)

Run the code above in your browser using DataLab