Learn R Programming

ACSWR (version 1.0)

LRNormalMean_KV: Likelihood ratio test for equality of mean when the variance is known

Description

Likelihood ratio test for equality of mean when the variance is known for a sample from normal distribution is setup here. For details, refer Chapter 7 of the book.

Usage

LRNormalMean_KV(x, mu0, alpha, sigma)

Arguments

x
the variable of interest
mu0
the mean of interest
alpha
size of the LR test
sigma
value of the known standard deviation

See Also

t.test

Examples

Run this code
data(hw)
LRNormalMean_KV(hw$Height,mu0=70, alpha=0.05, sigma=sqrt(20))

Run the code above in your browser using DataLab