Learn R Programming

LBI (version 0.2.2)

LIvtest: Likelihood Interval of variance and sd assuming Normal Distribution using means and SDs

Description

Likelihood interval of variance and sd assuming normal distribution. This is estimated likelihood interval, not profile likelihood interval.

Usage

LIvtest(s1, n1, s2, n2, k, conf.level=0.95)

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

Arguments

s1

sample standard deviation of the first group

n1

sample size of the first group

s2

sample standard deviation of the second group

n2

sample size of the second group

k

1/k likelihood interval will be calculated

conf.level

approximate confidence level. If k is specified, this is ignored.

Author

Kyun-Seop Bae k@acr.kr

Details

It calculates likelihood interval of variance and sd using sufficient statistics. There is no standard error in the output.

Examples

Run this code
  LIvtest(10.5, 3529, 8.9, 5190)
  LIvtest(3, 10, 2, 10)
  LIvtest(3, 10, 2, 10, k=15)

Run the code above in your browser using DataLab