README.md

sparrpowR: Power analysis to detect spatial relative clusters

CRAN
version CRAN RStudio mirror
downloads license

Overview

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.

Installation

To install the release version from CRAN:

install.packages("sparrpowR")

To install the development version from GitHub:

devtools::install_github("machiela-lab/sparrpowR")

Available functions

Function Description 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.

Authors

* **Ian D. Buller** - *Occupational and Environmental Epidemiology Branch, Division of Cancer Epidemiology and Genetics, National Cancer Institute, National Institutes of Health, Rockville, Maryland* - [GitHub](https://github.com/idblr) * **Derek W. Brown** - *Integrative Tumor Epidemiology Branch, Division of Cancer Epidemiology and Genetics, National Cancer Institute, National Institutes of Health, Rockville, Maryland* - [GitHub](https://github.com/derekbrown12) See also the list of [contributors](https://github.com/machiela-lab/sparrpowR/graphs/contributors) who participated in this package, including: * **Tim A. Myers** - *Laboratory of Genetic Susceptibility, Division of Cancer Epidemiology and Genetics, National Cancer Institute, National Institutes of Health, Rockville, Maryland* - [GitHub](https://github.com/timyers) ## Usage wzxhzdk:0 ![](man/figures/spatial_plots1.png) ![](man/figures/spatial_plots2.png) ![](man/figures/spatial_plots3.png) wzxhzdk:1 ![](man/figures/spatial_plots4.png) ![](man/figures/spatial_plots5.png) wzxhzdk:2 ![](man/figures/spatial_plots6.png)

Try the sparrpowR package in your browser

Any scripts or data that you put into this service are public.

sparrpowR documentation built on Aug. 3, 2021, 1:06 a.m.