Description Usage Arguments Value Examples
Sets up MCMC to fit the parameters of the contour Model in R, then runs the sampler in C++
1 2 3 4 5 6 | fit_cont_pars(r, n_iter, y_obs, reg_info, dists = NULL,
sigma_min = 0.01, sigma0_lb = NULL, sigma0_ub = NULL,
xU_prop_sd_def = 0.03, mu_ini = NULL, mu0 = NULL, lambda0 = NULL,
sigma_ini = NULL, sigma_prop_cov = NULL, sigma_sp = 25,
rho_ini = 0.5, rho0_lb = 0, rho0_ub = 0.99, rho_prop_sd = 0.01,
w = 20)
|
r |
number indicating which region in the |
n_iter |
number of iterations to run the MCMC, must be a multiple of |
y_obs |
output of |
reg_info |
a |
dists |
symmetric matrix of the same dimension as the number of
lines being used, specifying distances among indices.
Defaults to |
sigma_min |
minimum value for all σ parameters.
Typically close to but not exactly zero (defaults to 0.01).
Not used if |
sigma0_lb |
vector of the same length as the number of lines which
specifies the lower bound of the uniform prior for each sigma
value. Defaults to |
sigma0_ub |
vector of the same length as the number of lines which
specifies the upper bound of the uniform prior for each sigma
value. Defaults to |
xU_prop_sd_def |
Standard deviation for proposals for xU when xU can take on an infinite set of values |
mu_ini |
vector of the same length as the number of lines which
specifies the values from which each element of μ will
be initialized in the MCMC. Defaults to |
mu0 |
vector of the same length as the number of lines which specifies
the prior mean for μ. Defaults to |
lambda0 |
matrix of the same dimension as the number of lines which
specifices the prior covariance matrix for μ. Defaults
to |
sigma_ini |
vector of the same length as the number of lines which
specifies the values from which each element in Σ
will be initialized from. Defaults to |
sigma_prop_cov |
covariance matrix of the same length as the number of
lines that is used in sampling Σ values.
Defaults to |
sigma_sp |
integer specifying how many elements in the Σ matrix should be sampled together in the MCMC. Defaults to 25. |
rho_ini |
double between 0 and 1 from which the value of |
rho0_lb |
double between 0 and 1 which gives the lower bound of the
uniform prior for |
rho0_ub |
double between 0 and 1 which gives the upper bound of the
uniform prior for |
rho_prop_sd |
standard deviation for the normal proposal distribution used
when proposing value for |
w |
integer specifying how many samples of the parameters will be maintained. Samples from every w-th iteration is stored. |
List that gives the values of the MCMC chain for
xU
, mu
, sigma
and rho
along with
indicators of acceptance on each iteration: xURate
,
sigmaRate
, and rhoRate
. Background information
is also outputted including the upper and lower bounds for
unobserved x's (xU_lb
, xU_ub
), vectors giving
the first and last indices of each grouping in sampling Σ
(sigma_ind_1
,sigma_ind_2
), the distance matrix
(dists
), and the integer specifying how many samples of the
parameters will be maintained w
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.