sample_log_shape: Sample Weibull log shape parameter

Description Usage Arguments Value

Description

Produce a Gibbs sample of Weibull log shape parameter of a subject

Usage

1
sample_log_shape(rt, st, y, eta, prior_mu, prior_sigma, proposal_std, nstate)

Arguments

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

Value

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


zhifeiyan/WeibullHM documentation built on May 4, 2019, 11:21 p.m.