Description Usage Arguments Value
View source: R/multivariate_models.R
Do Metropolis-Hastings sampling of the posterior probability p(x|y,theta_x,theta_y) for the mixed cumulative probit model given the response vector y.
1 2 3 4 5 6 7 8 9 10 | sample_x_posterior(
y,
th_x,
th_y,
mod_spec,
num_samp,
thinning = 1,
prop_rescale = 0.1,
seed = NA
)
|
y |
The response vector for a single observation |
th_x |
Parameterization for prior on x |
th_y |
Parameterization for likelihood |
mod_spec |
The model specification |
seed |
An optional input seed to make sampling reproducibile (default: NA, not used) |
xcalc |
A vector of ages at which to calculate the posterior probability |
A vector of posterior probabilities
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.