# Example 1: testing the Laplace distribution hypothesis using "transf" option
x <- rnorm(50) # simulating a random sample from a normal distribution
laplace.test(x)
# Example 2: testing the Laplace distribution hypothesis using "ratio" option
x <- rt(60,4) # simulating a random sample from Student's t distribution with 4 d.f.
laplace.test(x, method = "ratio")
Run the code above in your browser using DataLab