Skip to content

Test if the rate of a event in two groups is different

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

lucavd/ratetest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ratetest

The goal of ratetest is to test if the rate of a event in two groups is significantly different, also calculating the 95% confidence interval with an exact poisson distribution

Installation

You can install the released version of ratetest from GitHub with:

# install.packages("devtools")
devtools::install_github("lucavd/ratetest")

Example

library(ratetest)

rate_test(5,8,182.8,165.1)
#> # A tibble: 3 x 5
#>   var    rate lower upper p.value  
#>   <chr> <dbl> <dbl> <dbl> <chr>    
#> 1 tot    3.74 1.99   6.39 ""       
#> 2 a      2.74 0.888  6.38 ""       
#> 3 b      4.85 2.09   9.55 "0.46007"

About

Test if the rate of a event in two groups is different

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published