Package: sparr 2.3-15

Tilman M. Davies

sparr: Spatial and Spatiotemporal Relative Risk

Provides functions to estimate kernel-smoothed spatial and spatio-temporal densities and relative risk functions, and perform subsequent inference. Methodological details can be found in the accompanying tutorial: Davies et al. (2018) <doi:10.1002/sim.7577>.

Authors:Tilman M. Davies [aut, cre], Jonathan C. Marshall [aut]

sparr_2.3-15.tar.gz
sparr_2.3-15.zip(r-4.5)sparr_2.3-15.zip(r-4.4)sparr_2.3-15.zip(r-4.3)
sparr_2.3-15.tgz(r-4.4-any)sparr_2.3-15.tgz(r-4.3-any)
sparr_2.3-15.tar.gz(r-4.5-noble)sparr_2.3-15.tar.gz(r-4.4-noble)
sparr_2.3-15.tgz(r-4.4-emscripten)sparr_2.3-15.tgz(r-4.3-emscripten)
sparr.pdf |sparr.html
sparr/json (API)

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

Peer review:

Bug tracker:https://github.com/tilmandavies/sparr/issues

Datasets:
  • burk - Burkitt's lymphoma in Uganda
  • fmd - Veterinary foot-and-mouth disease outbreak data
  • pbc - Primary biliary cirrhosis data

On CRAN:

6.95 score 7 stars 8 packages 102 scripts 1.3k downloads 4 mentions 26 exports 25 dependencies

Last updated 5 months agofrom:7a2d3f8857. Checks:OK: 3 NOTE: 4. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 04 2024
R-4.5-winOKNov 04 2024
R-4.5-linuxOKNov 04 2024
R-4.4-winNOTENov 04 2024
R-4.4-macNOTENov 04 2024
R-4.3-winNOTENov 04 2024
R-4.3-macNOTENov 04 2024

Exports:available.h0bivariate.densityBOOT.densityBOOT.spattempfft2dLIK.densityLIK.spattempLSCV.densityLSCV.riskLSCV.spattempmultiscale.densitymultiscale.sliceNSNS.spattempOSOS.spattemprimpolyriskSLIK.adaptspattemp.densityspattemp.riskspattemp.slicetol.classifytol.classplottol.contourtolerance

Dependencies:abindcodetoolsdeldirdoParallelforeachgoftestiteratorslatticeMatrixmgcvmisc3dnlmepolycliprpartspatstatspatstat.dataspatstat.explorespatstat.geomspatstat.linnetspatstat.modelspatstat.randomspatstat.sparsespatstat.univarspatstat.utilstensor

Readme and manuals

Help Manual

Help pageTopics
The sparr Package: Spatial and Spatiotemporal Relative Risksparr-package sparr
Available global bandwidth rangeavailable.h0
Bivariate kernel density/intensity estimationbivariate.density bivden
Bootstrap bandwidth for a spatial kernel density estimateBOOT.density
Bootstrap bandwidths for a spatiotemporal kernel density estimateBOOT.spattemp
Burkitt's lymphoma in Ugandaburk
2D fast-Fourier wrapper around 'fftwtools' or 'stats' packagefft2d
Veterinary foot-and-mouth disease outbreak datafmd
Cross-validation bandwidths for spatial kernel density estimatesLIK.density LSCV.density
Cross-validation bandwidths for spatiotemporal kernel density estimatesLIK.spattemp LSCV.spattemp
Jointly optimal bandwidth selection for the spatial relative risk functionLSCV.risk
Multi-scale adaptive kernel density/intensity estimationmsden multiscale.density
Slicing a multi-scale density/intensity objectmultiscale.slice
Normal scale (NS) bandwidth selectorNS NS.spattemp
Oversmoothing (OS) bandwidth selectorOS OS.spattemp
Primary biliary cirrhosis datapbc
Plotting sparr objectsplot.bivden plot.msden plot.rrs plot.rrst plot.stden
Printing sparr objectsprint.bivden print.msden print.rrs print.rrst print.stden
Random point generation inside polygonrimpoly
Spatial relative risk/density ratiorisk rrs
Simultaneous global/pilot likelihood bandwidth selectionSLIK.adapt
Spatiotemporal kernel density estimationspattemp.density stden
Spatiotemporal relative risk/density ratiorrst spattemp.risk
Slicing a spatiotemporal objectspattemp.slice
Summarising sparr objectssummary.bivden summary.msden summary.rrs summary.rrst summary.stden
Classification by _p_-value surfacestol.classify
Plot tolerance contour classification schemetol.classplot
Plot tolerance contourstol.contour
Tolerance by _p_-value surfacestolerance