Learn R Programming

rts2

There are a wide variety of sources of case data that are finely spatially-resolved and time stamped to monitor disease epidemiology in real-time. These data may include daily hospital admissions, positive tests, or calls to public health telephone services. Geospatial statistical models provide a principled basis for generating predictions of disease epidemiology and its spatial and temporal distribution from these data. rts2 provides a set of functions to conduct disease surveillance using a real-time feed of spatial or spatio-temporal data of cases.

This readme is now out of date. It will be updated along with a manual describing use. The package supports LGCP with full Gaussian Process, Nearest Neigbour Gaussian Process, and Hibert Space Gaussian Process models, Bayesian (via Stan) and MCMC Maximum likelihood model fitting, "regional" data models for data aggregated to an irregular lattice, and more!

Copy Link

Version

Install

install.packages('rts2')

Monthly Downloads

829

Version

0.10.2

License

CC BY-SA 4.0

Maintainer

Sam Watson

Last Published

February 2nd, 2026

Functions in rts2 (0.10.2)

fixed.effects

Extracts the fixed effect estimates
predict.rtsFit

Predict from a rtsFit object
formula.grid

Extracts the formula from a grid object.
fitted.rtsFit

Fitted values from a rtsFit object
grid

An rts grid object
flat_disaggregate

Simple flat disaggregation
summary.rtsFit

Summary method for class "rtsFit"
print.rtsFit

Prints an rtsFit fit output
print.rtsFitSummary

Prints an rtsFitSummary fit output
summary.grid

Summarizes a grid object
rts2-package

tools:::Rd_package_title("rts2")
logLik.rtsFit

Extracts the log-likelihood from an rtsFit object
residuals.rtsFit

Residuals method for a rtsFit object
residuals.grid

Residuals method for a grid object
progress_bar

Generates a progress bar
random.effects

Extracts the random effect estimates
vcov.rtsFit

Extract the Variance-Covariance matrix for a rtsFit object
vcov.grid

Calculate Variance-Covariance matrix for a maximum likelihood object stored in grid
boundary

Boundary polygon for Birmingham, UK
disaggregate_positive

Disaggregation function for strictly positive covariates
confint.rtsFit

Fixed effect confidence intervals for a rtsFit object
disaggregate_covariate

Disaggregate regional means to fine grid, preserving aggregate means
coef.rtsFit

Extracts fixed effect coefficients from a rtsFit object
create_points

Create sf object from point location data
family.grid

Extracts the family from a grid object.
covariance.parameters

Extracts the estimates of the covariance parameters
family.rtsFit

Extracts the family from a rtsFit object.
formula.rtsFit

Extracts the formula from a rtsFit object.
predict.grid

Extract predictions from a grid object
birmingham_crime

Birmingham crime data
example_points

Simulated point data for running single-period examples