Learn R Programming

LBI (version 0.2.2)

LIvar: Likelihood Interval of variance and sd assuming Normal Distribution with sample mean and sample size

Description

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

Usage

LIvar(s1, n1, k, conf.level=0.95)

Value

PE

maximum likelihood estimate on the population variance

LL

lower limit of likelihood interval

UL

upper limit of likelihood interval

Arguments

s1

standard deviation of the sample

n1

sample size

k

1/k likelihood interval will be calculated

conf.level

approximately corresponding confidence level. If k is specified, this is ignored.

Author

Kyun-Seop Bae k@acr.kr

Details

It calculates likelihood interval of sd and variance assuming normal distribution in one group. The likelihood interval is asymmetric and there is no standard error in the output.

Examples

Run this code
  x = c(-5.3, -4.5, -1.0, -0.7, 3.7, 3.9, 4.2, 5.5, 6.8, 7.4, 9.3)
  LInormVar(x)
  LIvar(sd(x), length(x))

Run the code above in your browser using DataLab