Confidence interval for parameter lambda of Poisson distribution

poisson_lambda_CI(
  x = NULL,
  lambda = mean(x),
  n = length(x),
  Sn = sum(x),
  conf.level = 0.95
)

Arguments

x

data

conf.level

confidence level, number between 0 and 1, usually 0.95.

Value

List with results... ???

See also

Other statistical functions: median_CI(), normal_var_CI(), quartiles()

Examples


library(spHelper)

x <- c(3,0,2,1,0,4,3,2,1,2)
poisson_lambda_CI(x)
#> $model
#> [1] "CI for parameter lambda of Poisson distribution"
#> 
#> $parameter
#> [1] "lambda"
#> 
#> $values
#>   CI_lower lambda CI_upper
#> 1 1.066794    1.8 2.844776
#> 
#> $data
#>  [1] 3 0 2 1 0 4 3 2 1 2
#> 
#> attr(,"class")
#> [1] "CI_model" "list"