laplace.dist.test {diagL1}R Documentation

Wrapper for the 'laplace.test' function from the 'lawstat' package

Description

This function is a wrapper for the 'laplace.test' function from the 'lawstat' package. The advantage of using this function instead of the 'laplace.test' function of the 'lawstat' package is that this function shows the tables with the critical values of the statistics provided by Puig and Stephens (2000). This makes interpretation of the results easier.

Usage

laplace.dist.test(y, print_tables = TRUE)

Arguments

y

A numeric vector containing the sample data.

print_tables

A boolean variable that indicates whether tables with critical values will be printed or not.

Value

The result of the laplace.test function.

References

Puig, P. and Stephens, M. A. (2000). Tests of fit for the Laplace distribution, with applications. Technometrics, 42(4), 417-424. doi:10.2307/1270952.

See Also

laplace.test Goodness-of-fit Test Statistics for the Laplace Distribution from package lawstat.

Examples


normal_sample = rnorm(100, 0, 10)
laplace_sample = rlaplace(100, 0, 10)
laplace.dist.test(normal_sample)
laplace.dist.test(laplace_sample)



[Package diagL1 version 1.0.0 Index]