For a description of the prior distribution, see the "Details" section below.
fastmode(y, subj, pred, xcol, zcol, prior, vmax, occ, start,
maxits=100, eps=0.0001)The prior distribution applied to the within-unit residual variance is scaled inverted-chisquare,
sigma2 $\sim$ a / chisq(b),
where chisq(b) denotes a chisquare random variable with b degrees of freedom, and a and b are user-defined hyperparameters. Values for the hyperparmeters may be chosen by regarding a/b as a rough prior guess for sigma2, and as the imaginary degrees of freedom on which this guess is based.
The prior distribution applied to the between-unit covariance matrix is inverted Wishart,
psiinv $\sim$ W(c,D),
where psiinv is the inverse of the between-unit covariance matrix psi, and W(c,D) denotes a Wishart distribution with degrees of freedom c and scale matrix D. Values for the hyperparameters may be chosen by regarding Dinv/c (the inverse of D divided by c) as a rough prior guess for psi, and c as the imaginary degrees of freedom on which this guess is based.
An improper uniform prior density function is applied to the fixed effects beta.
ecmeml, ecmerml,
fastml, fastrml,
mgibbs, fastmcmc,
exampleFor a detailed example, see the file "example.R" distributed
with this library.Run the code above in your browser using DataLab