expparetotest {LREP}R Documentation

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.

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

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

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

[Package LREP version 0.1.1 Index]