posterior_mean: posterior_mean

Description Usage Arguments Details Value

View source: R/posterior.R

Description

This is an internal (non-exported) function. This help page provides additional documentation mainly intended for developers and expert users.

Usage

1
posterior_mean(bhat, Vinv, U1)

Arguments

bhat

R vector of observation

Vinv

R x R inverse covariance matrix for the likelihood

U1

R x R posterior covariance matrix, computed using posterior_cov

Details

If bhat is N(b,V) and b is N(0,U) then b|bhat N(mu1,U1). This function returns mu1.

Value

R vector of posterior mean


mashr documentation built on May 24, 2021, 1:06 a.m.