expparetotest: This program takes your data and the significance level as...

Description Usage Arguments Value Fields Examples

View source: R/expparetotest.R

Description

This program takes your data and the significance level as input and returns the critical number for the test, the value of the -2L (deviance) statistic and the decision (Pareto or exponential) as output.

Usage

1
expparetotest(x, alpha)

Arguments

x

Import Raw data

alpha

Significance level. Note: this program works only for the following significance levels: 0.10, 0.075, 0.05, 0.025, 0.01 and 0.005.

Value

Output the critical number for the test, the value of the -2L (deviance) statistic and the decision (Pareto or exponential).

Fields

critical

Critical value

statistic

Deviance statistic

info

Interpret the data is coming from an exponential distribution or Pareto distribution.

Examples

1
2
x<-rexp(1000,0.1)
print(expparetotest(x,0.05))

LREP documentation built on Aug. 17, 2021, 9:07 a.m.