sample_et_st: Sample environment process and state process of a subject

Description Usage Arguments Value

Description

Produce a Gibbs sample of environment process and state process of a subject

Usage

1
sample_et_st(rt, wb_shape, wb_scale, p, q, e_stat, s_stat, ntrial, nstate, nenv)

Arguments

rt

a vector of response time sequence of a subject

wb_shape

current update of Weibull shape parameter

wb_scale

a vector of current update of Weibull scale parameters in all states

p

an array of current update of transition matrices of state process

q

a matrix of current update of transition matrix of environment process

e_stat

a vector of current update of stationary distribution of environment process

s_stat

a vector of current update of stationary distribution of state process

ntrial

total number of trials

nstate

total number of states

nenv

total number of environments

Value

A list with the following components:

et

a vector of Gibbs sample of environment process

st

a vector of Gibbs sample of state process


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