View source: R/calculate_poisson_pvalues.R
calculate_poisson_pvalues | R Documentation |
Helper function checking how closely the distribution of cases across clusters follows a poisson distribution. Returns a p-value with the null hypothesis being that the distribution follows a poisson distribution. Dependency with the nipnTK package, using the greensIndex function.
calculate_poisson_pvalues(df, strata = NULL, cluster, case)
df |
Inputs a dataframe. |
strata |
Optional input of a character value specifying the strata or groupings to test whether the data is different than poisson distribution. |
cluster |
Input of a character value specifying the column name for cluster id. |
case |
Input of a character value specifying the column name for the cases of interest. |
Returns a data frame with two columns for strata names and poisson p-values.
## Not run: calculate_poisson_pvalues(df, strata = "admin2", cluster = "cluster_id",
case = "gam_wfhz_noflag")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.