PostExp: Posterior Expectation

Description Usage Arguments Value Examples

View source: R/Estimation.R

Description

Calculates the posterior expectation given available pi and tau2.

Usage

1
PostExp(theta, se, pi, tau2)

Arguments

theta

Parameter estimates.

se

Parameter standard errors.

pi

Initial value of pi, the proportion of null parameters.

tau2

Initial value of tau, the variance component.

Value

Numeric vector of the posterior expected effect sizes.

Examples

1
2
3
4
5
6
7
data(wc_data)
post_exp <- PostExp(
  theta = wc_data$theta,
  se = wc_data$se,
  pi = 0.75,
  tau2 = 0.05
)

zrmacc/WinCurse documentation built on April 2, 2021, 3:40 a.m.