Nothing
Date repository last updated: February 01, 2023
The sparrpowR
package is a suite of R
functions to calculate the statistical power to detect clusters using the kernel-based spatial relative risk function that is estimated using the sparr package. Basic visualization is also supported.
To install the release version from CRAN:
install.packages("sparrpowR")
To install the development version from GitHub:
devtools::install_github("machiela-lab/sparrpowR")
spatial_power
Main function. Compute the statistical power of a spatial relative risk function using randomly generated data.
spatial_data
Generate random bivariate data for a spatial relative risk function.
jitter_power
Compute the statistical power of a spatial relative risk function using previously collected data.
spatial_plots
Easily make multiple plots from spatial_power
, spatial_data
, and jitter_power
outputs.
pval_correct
Called within spatial_power
and jitter_power
, calculates various multiple testing corrections for the alpha level.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.