Learn R Programming

hytest (version 0.1.1)

exp_errorI: Empirical Error Type I Associated with an Exponential Distribution

Description

exp_errorI is used to obtain an empirical error type I when we use a random sample from an Exponential distribution.

Usage

exp_errorI(c = 1, n = 100, theta0 = 1, R = 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.

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 location parameter under the null hypothesis of a sample from an Exponential distribution. Default value is 1.

R

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

Author

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

Run this code
# Error type I when we use a random sample of size 200 from an Exponential distribution,
# a critical value c = 0.24 and R = 20000 to test H_0: theta = 2 vs H_1: theta != 2
exp_errorI(c=0.24,n=200,theta0=2,R=20000)

Run the code above in your browser using DataLab