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

The SPARRA risk score (Scottish Patients At Risk of admission and Re-Admission) estimates yearly risk of emergency hospital admission using electronic health records on a monthly basis for most of the Scottish population. This package implements a suite of functions used to analyse the behaviour and performance of the score, focusing particularly on differential performance over demographically-defined groups. It includes useful utility functions to plot receiver-operator-characteristic, precision-recall and calibration curves, draw stock human figures, estimate counterfactual quantities without the need to re-compute risk scores, to simulate a semi-realistic dataset. Our manuscript can be found at: <doi:10.1371/journal.pdig.0000675>.

Calculate the statistical power to detect clusters using kernel-based 
        spatial relative risk functions that are estimated using the 'sparr' package.
        Details about the 'sparr' package methods can be found in the tutorial: Davies
        et al. (2018) <doi:10.1002/sim.7577>. Details about kernel density estimation 
        can be found in J. F. Bithell (1990) <doi:10.1002/sim.4780090616>. More 
        information about relative risk functions using kernel density estimation can 
        be found in J. F. Bithell (1991) <doi:10.1002/sim.4780101112>.

The 'HJ-Biplot' is a multivariate method that represents high-dimensional data in a low-dimensional subspace, capturing most of the information’s variability in just a few dimensions. This package implements three new regularized versions of the HJ-Biplot: Ridge, LASSO, and Elastic Net. These versions introduce restrictions that shrink or zero-out variable weights to improve interpretability based on regularization theory. All methods provide graphical representations using 'ggplot2'.