Learn R Programming

spCP (version 1.4.0)

Spatially Varying Change Points

Description

Implements a spatially varying change point model with unique intercepts, slopes, variance intercepts and slopes, and change points at each location. Inference is within the Bayesian setting using Markov chain Monte Carlo (MCMC). The response variable can be modeled as Gaussian (no nugget), probit or Tobit link and the five spatially varying parameter are modeled jointly using a multivariate conditional autoregressive (MCAR) prior. The MCAR is a unique process that allows for a dissimilarity metric to dictate the local spatial dependencies. Full details of the package can be found in the accompanying vignette. Furthermore, the details of the package can be found in the corresponding paper published in Spatial Statistics by Berchuck et al (2019): "A spatially varying change points model for monitoring glaucoma progression using visual field data", .

Copy Link

Version

Install

install.packages('spCP')

Monthly Downloads

207

Version

1.4.0

License

GPL (>= 2)

Maintainer

Samuel I. Berchuck

Last Published

September 29th, 2025

Functions in spCP (1.4.0)

VFSeries

Visual field series for one patient.
predict.spCP

predict.spCP
PlotCP

PlotCP
spCP

MCMC sampler for spatially varying change point model.
diagnostics

diagnostics
is.spCP

is.spCP
HFAII_QueenHF

HFAII Queen Hemisphere Adjacency Matrix
GarwayHeath

Garway-Heath angles for the HFA-II
HFAII_Queen

HFAII Queen Adjacency Matrix
HFAII_Rook

HFAII Rook Adjacency Matrix