lognorm_errorI {hytest}R Documentation

Empirical Error Type I Associated with a Log Normal Distribution

Description

lognorm_errorI is used to obtain an empirical error type I when we use a random sample from a Log Normal distribution.

Usage

lognorm_errorI(c, n = 150, theta0 = 0, sdlog = 1, R = 15000)

Arguments

c

numeric, represents a positive value that defines a critical region. Default value is 1.

n

numeric, represents the size of the sample. Default value is 100.

theta0

numeric, represents the natural logarithm of location parameter under the null hypothesis of a sample from a Log Normal distribution. Default value is 0.

sdlog

numeric, represents the natural logarithm of scale parameter of a Log normal distribution. It is assumed known and its default value is 1.

R

numeric, represents the number of replicates. Default value is 15000.

Value

A list with number of replicates, sample size, and critical value that were used in the calculation of error type I associated with a likelihood ratio statistic.

Author(s)

Carlos Alberto Cardozo Delgado <cardozorpackages@gmail.com>.

References

Casella, G. and Berger, R. (2003). Statistical Inference, Second Edition. Duxbury Press.

Hogg, R., McKean, J., and Craig, A. (2019) Introduction to Mathematical Statistic. Eighth edition. Pearson.

Examples

# Error type I when we use a random sample of size 70 from an Log Normal distribution,
# a critical value c = 0.65 and R = 20000 to test H_0: theta = 0 vs H_1: theta != 0
lognorm_errorI(c=0.65,n=70,theta0=0,sdlog=1,R=20000)

[Package hytest version 0.1.0 Index]