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.
expparetotest(x, alpha)
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. |
Output the critical number for the test, the value of the -2L (deviance) statistic and the decision (Pareto or exponential).
critical
Critical value
statistic
Deviance statistic
info
Interpret the data is coming from an exponential distribution or Pareto distribution.
x<-rexp(1000,0.1)
print(expparetotest(x,0.05))