Usage
sampleSig2b(sample,y,cond,sub,item,lag,N,I,J,R,ncond,nsub,nitem,s2mu,s2a,s2b,met,blockMean,sampLag=1,Hier=1)
Arguments
sample
Previous sample of block variances.
cond
Vector of condition index,starting at zero.
sub
Vector of subject index, starting at zero.
item
Vector of item index, starting at zero.
lag
Vector of lag index, zero-centered.
ncond
Vector of length (N) containing number of trials per each condition.
nsub
Vector of length (I) containing number of trials per each
subject.
nitem
Vector of length (J) containing number of trials per each
item.
s2mu
Prior variance on the grand mean mu; usually set to some
large number.
s2a
Shape parameter of inverse gamma prior placed on effect variances.
s2b
Rate parameter of inverse gamma prior
placed on effect variances. Setting both s2a AND s2b to be small
(e.g., .01, .01) makes this an uninformative prior.
met
Vector of metropolis-hastins tuning parameters.
blockMean
Block of parameters for the mean of the distribution.
sampLag
Logical. Whether or not to sample the lag effect.
Hier
Logical. If TRUE then effect variances are estimated
from data. If FALSE then these values are set to whatever
value is in the s2alpha and s2beta slots of sample. This
should always be set to TRUE.