| spCP {spCP} | R Documentation |
MCMC sampler for spatially varying change point model.
Description
spCP is a Markov chain Monte Carlo (MCMC) sampler for a spatially varying change point
model with spatially varying slopes, intercepts, and unique variances at each spatial-temporal
location. The model is implemented using a Bayesian hierarchical framework.
Usage
spCP(
Y,
DM,
W,
Time,
Starting = NULL,
Hypers = NULL,
Tuning = NULL,
MCMC = NULL,
Family = "tobit",
Weights = "continuous",
Distance = "circumference",
Rho = 0.99,
ScaleY = 10,
ScaleDM = 100,
Seed = 54
)
Arguments
Y |
An |
DM |
An |
W |
An |
Time |
A |
Starting |
Either When |
Hypers |
Either When
|
Tuning |
Either When |
MCMC |
Either
|
Family |
Character string indicating the distribution of the observed data. Options
include: |
Weights |
Character string indicating the type of weight used. Options include:
|
Distance |
Character string indicating the distance metric for computing the
dissimilarity metric. Options include: |
Rho |
A scalar in |
ScaleY |
A positive scalar used for scaling the observed data, |
ScaleDM |
A positive scalar used for scaling the dissimilarity metric distances,
|
Seed |
An integer value used to set the seed for the random number generator (default = 54). |
Details
Details of the underlying statistical model proposed by proposed by Berchuck et al. 2018. are forthcoming.
Value
spCP returns a list containing the following objects
beta0NKeep x Mmatrixof posterior samples forbeta0. The s-th column contains posterior samples from the the s-th location.beta1NKeep x Mmatrixof posterior samples forbeta1. The s-th column contains posterior samples from the the s-th location.lambda0NKeep x Mmatrixof posterior samples forlambda0. The s-th column contains posterior samples from the the s-th location.lambda1NKeep x Mmatrixof posterior samples forlambda1. The s-th column contains posterior samples from the the s-th location.etaNKeep x Mmatrixof posterior samples foreta. The s-th column contains posterior samples from the the s-th location.thetaNKeep x Mmatrixof posterior samples fortheta. The s-th column contains posterior samples from the the s-th location.deltaNKeep x 5matrixof posterior samples fordelta. The columns have names that describe the samples within them.sigmaNKeep x 15matrixof posterior samples forSigma. The columns have names that describe the samples within them. The row is listed first, e.g.,Sigma32refers to the entry in row3, column2.alphaNKeep x 1matrixof posterior samples forAlpha.metropolis(3 * M + 1) x 3matrixof metropolis acceptance rates, updated tuners, and original tuners that result from the pilot adaptation. The firstMcorrespond to theLambda0Vecparameters, the nextMcorrespond to theLambda1Vec, the nextMcorrespond to theEtaVecparameters and the last row give theAlphavalues.runtimeA
characterstring giving the runtime of the MCMC sampler.datobjA
listof data objects that are used in futurespCPfunctions and should be ignored by the user.dataugA
listof data augmentation objects that are used in futurespCPfunctions and should be ignored by the user.
Author(s)
Samuel I. Berchuck sib2@duke.edu
References
Reference for Berchuck et al. 2018 is forthcoming.