cond_mean | R Documentation |
Under the model y[ijk] == mu + a[i] + beta[ij] + epsilon[ijk]
, where
each alpha[i]
, beta[ij]
and epsilon[ijk]
are independent mean-0,
q
-dimensional normal random vectors with with covariance matrices
Sigma[A]
, Sigma[B]
and Sigma[E]
respectively, compute the means
of (alpha[i], beta[i1], ..., beta[iJ])
conditional on the observed data
for each i
.
cond_mean(init_covs, cond_cov, data, prior_mean = rep(0, data$dims$q))
init_covs |
A list of prior covariances. Must have an entry |
cond_cov |
A function that returns conditional covariance matrices as
created by |
data |
An object inheriting |
prior_mean |
A vector of the prior global mean |
A list with entries sire
and dam
whose rows are the posterior
means of alpha[i]
and beta[ij]
respectively.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.