gmrfdpPost {growfunctions} | R Documentation |
Run a Bayesian functional data model under an instrinsic GMRF prior whose precision parameters employ a DP prior
Description
An internal function to gmrfdpgrow
Usage
gmrfdpPost(
y,
ksi,
ipr,
C,
D,
q_order,
q_type,
n.iter,
n.burn,
n.thin,
M_init,
w_star,
q_shape,
q_rate,
tau_shape,
tau_rate,
dp_shape,
dp_rate,
nu,
progress,
jitter,
kappa_fast
)
Arguments
y |
An N x T matrix of N observations of T x 1 functions |
ksi |
An N x P matrix of N observations of P predictors to be used
in prior probability of co-clustering of set of N, T x 1 observations.
Defaults to |
ipr |
An optional input vector of inclusion probabilities for each observation unit in the case
the observed data were acquired through an informative sampling design, so that unbiased
inference about the population requires adjustments to the observed sample. Defaults to
|
C |
A list object of length, |
D |
A K x T matrix, where |
q_order |
An integer vector where each entry contains the order of the associated |
q_type |
A vector of length |
n.iter |
The number of MCMC sampling iterations |
n.burn |
The number of warm-up iterations to discard |
n.thin |
The interval or step size of post-burn-in samples to return |
M_init |
Starting value of number of clusters for sampling cluster assignments. |
w_star |
Integer value denoting the number of cluster locations to sample ahead of
observations in the auxiliary Gibbs sampler used to sample the number of clusters
and associated cluster assignments. A higher value reduces samplin auto-correlation,
but increases computational burden. Defaults to |
q_shape |
The shape parameter of the Gamma base distribution for the |
q_rate |
The rate parameter of the Gamma base distribution for the |
tau_shape |
The value (in (0,infty)) for the shape hyperparameter for the Gamma prior on the error
precision parameter. Defaults to |
tau_rate |
The rate parameter of the Gamma prior distribution on |
dp_shape |
The shape parameter for the |
dp_rate |
The rate parameter for the |
nu |
The degree of freedom parameter for the Huang and Wand prior on precision
matrix locations, |
progress |
An indicator in |
jitter |
A scalar double indicating amount of jitter to subract from the posterior
rate and shape hyperparameters of |
kappa_fast |
Boolean for whether to generate rate hyperparameter from full conditionals
versus joint Gaussian (on random effects, |
Value
res A list object containing MCMC runs for all model parameters.
Note
Intended as an internal function for gmrfdpgrow
Author(s)
Terrance Savitsky tds151@gmail.com