Description Usage Arguments Value
Produce a Gibbs sample of Weibull log shape parameter of a subject
1 | sample_log_shape(rt, st, y, eta, prior_mu, prior_sigma, proposal_std, nstate)
|
rt |
a vector of response time sequence of a subject |
st |
a vector of current update of state process of a subject |
y |
a vector of current values of Weibull log scale parameters in all states |
eta |
current value of Weibull log shape parameter of a subject |
prior_mu |
mean of normal prior distribution of Weibull log shape parameter |
prior_sigma |
standard deviation of normal prior distribution of Weibull log shape parameter |
proposal_std |
random walk proposal standard deviation |
nstate |
total number of states |
A vector whose first element is a Gibbs sample and second element is a binary indicator value of acceptance or rejection of the proposed sample in random walk Metropolis–Hastings algorithm
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.