Package: ptools 2.0.0

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.

Authors:Andrew Wheeler [aut, cre]

ptools_2.0.0.tar.gz
ptools_2.0.0.zip(r-4.5)ptools_2.0.0.zip(r-4.4)ptools_2.0.0.zip(r-4.3)
ptools_2.0.0.tgz(r-4.5-any)ptools_2.0.0.tgz(r-4.4-any)ptools_2.0.0.tgz(r-4.3-any)
ptools_2.0.0.tar.gz(r-4.5-noble)ptools_2.0.0.tar.gz(r-4.4-noble)
ptools_2.0.0.tgz(r-4.4-emscripten)ptools_2.0.0.tgz(r-4.3-emscripten)
ptools.pdf |ptools.html
ptools/json (API)
NEWS

# Install 'ptools' in R:
install.packages('ptools', repos = c('https://apwheele.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/apwheele/ptools/issues

Datasets:

On CRAN:

Conda:

crime-analysiscriminal-justicecriminology

4.44 score 5 stars 11 scripts 189 downloads 25 exports 40 dependencies

Last updated 1 years agofrom:31c972b81d. Checks:1 OK, 8 NOTE. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 12 2025
R-4.5-winNOTEMar 12 2025
R-4.5-macNOTEMar 12 2025
R-4.5-linuxNOTEMar 12 2025
R-4.4-winNOTEMar 12 2025
R-4.4-macNOTEMar 12 2025
R-4.4-linuxNOTEMar 12 2025
R-4.3-winNOTEMar 12 2025
R-4.3-macNOTEMar 12 2025

Exports:bisq_xybuff_spcheck_poiscount_xydcount_xydist_xye_testhex_areahex_dimhex_wdidw_xykern_xynear_strings1near_strings2paipai_summarypois_contourpowaltprep_gridprep_hexgridscanwsmall_samptestvor_spwddwdd_harm

Dependencies:classclassIntclicpp11DBIdeldire1071gluegmpigraphKernSmoothlatticelifecyclemagrittrMASSmathjaxrMatrixpartitionspkgconfigpolyclippolynomproxyRANNrasterrbibutilsRcppRdpackrlangs2setssfspspatstat.dataspatstat.geomspatstat.univarspatstat.utilsterraunitsvctrswk

Spatial Feature Engineering with ptools

Rendered fromspat-feateng.Rmdusingknitr::rmarkdownon Mar 12 2025.

Last update: 2023-02-07
Started: 2021-10-30