
Last chance! 50% off unlimited learning
Sale ends in
Run MCMC to Fit Contour Model
RunMCMC(n_iter, dists, x, xU_vecs, xU_years, xU_prop_sd, xU_lb, xU_ub, mu,
mu0, lambda0, sigma, sigma_ind_1, sigma_ind_2, sigma_prop_cov, rho,
rho0_lb, rho0_ub, rho_prop_sd, sigma0_lb, sigma0_ub, w)
number of iterations to run the MCMC
symmetric matrix of the same dimension as the number of lines being used, specifying distances among starting locations or angles.
a matrix of observed distances (y) of dimension number of vectors by number of years
vector giving the indices of each x value vector in each year that is not observed (vector indices and year indices are paired, so must be ordered the same as xU_years)
vector giving the indices of each year in which each x value vector is not observed (vector indices and year indices are paired, so must be ordered the same as xU_vecs)
Standard deviation for proposals for xU
Lower bounds for xU values being sampled (order must match orded of xU_vecs and xU_years)
Upper bounds for xU values being sampled (order must match orded of xU_vecs and xU_years)
vector of the same length as the number of lines which specifies
the values from which each element of mu
will be initialized
in the MCMC.
vector of the same length as the number of lines which specifies
the prior mean for mu
.
matrix of the same dimension as the number of lines which
specifices the prior covariance matrix for mu
.
vector of the same length as the number of lines which
specifies the values from which each element in sigma
will be initialized from
vector giving the first index of each section of sigma's to be sampled together
vector giving the last index of each section of sigma's to be sampled together
covariance matrix of the same length as the number of
lines that is used in sampling sigma
values
double between 0 and 1 from which the value of rho
will
be initialized
double between 0 and 1 which gives the lower bound of the
uniform prior for rho
double between 0 and 1 which gives the upper bound of the
uniform prior for rho
.
standard deviation for the normal proposal distribution used
when proposing value for rho
in the sampler. Defaults
to 0.01
vector of the same length as the number of lines which specifies the lower bound of the uniform prior for each sigma value
vector of the same length as the number of lines which specifies the upper bound of the uniform prior for each sigma value.
Integer specifying how many samples of the parameters will be maintained. Samples from every wth iteration is stored.
List of length 7 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
.