Learn R Programming

LBI (version 0.2.0)

LIvtest: Likelihood Interval of variance and sd assuming Norml Distribution using sufficient statistics

Description

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

Usage

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

Value

PE

point estimation for the proportion

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

m1

sample mean of the first group

s1

sample standard deviation of the first group

n1

sample size of the first group

m2

sample mean of the second 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(5.4, 10.5, 3529, 5.1, 8.9, 5190)
  LIvtest(65, 2, 10, 62, 3, 10)
  LIvtest(65, 2, 10, 62, 3, 10, k=15)

Run the code above in your browser using DataLab