ptools: Tools for Poisson Data

Functions used for analyzing count data, mostly crime counts. Includes checking difference in two Poisson counts (e-test), checking the fit for a Poisson distribution, small sample tests for counts in bins, Weighted Displacement Difference test (Wheeler and Ratcliffe, 2018) <doi:10.1186/s40163-018-0085-5>, to evaluate crime changes over time in treated/control areas. Additionally includes functions for aggregating spatial data and spatial feature engineering.

Version: 2.0.0
Depends: R (≥ 3.0.0)
Imports: partitions, sp, raster, igraph, RANN, spatstat.geom, spatstat.utils, sf, stats, methods
Suggests: knitr, rmarkdown, testthat (≥ 3.0.0)
Published: 2023-02-07
DOI: 10.32614/CRAN.package.ptools
Author: Andrew Wheeler ORCID iD [aut, cre]
Maintainer: Andrew Wheeler <apwheele at>
License: MIT + file LICENSE
NeedsCompilation: no
Materials: README NEWS
CRAN checks: ptools results


Reference manual: ptools.pdf
Vignettes: Spatial Feature Engineering with ptools


Package source: ptools_2.0.0.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): ptools_2.0.0.tgz, r-oldrel (arm64): ptools_2.0.0.tgz, r-release (x86_64): ptools_2.0.0.tgz, r-oldrel (x86_64): ptools_2.0.0.tgz
Old sources: ptools archive


Please use the canonical form to link to this page.