library(LRTesteR)
# Null is true
set.seed(1)
x <- rpois(100, 1)
poisson_lambda_one_sample(x, 1, "two.sided")
# Null is false
set.seed(1)
x <- rpois(100, 2)
poisson_lambda_one_sample(x, 1, "greater")
Run the code above in your browser using DataLab