Learn R Programming

baggr (version 0.2.0)

effect_draw: Make posterior draws for treatment effect

Description

This function takes the samples of hyperparameters of a baggr model (commonly hypermean tau and hyper-SD sigma_tau) and simulates values of new realisations of tau (a mean effect in some unobserved group).

Usage

effect_draw(x, n)

Arguments

x

A baggr class object.

n

How many values to draw? The default is the same as number of samples in the model (default is 2,000).

Value

A vector of possible values of the treatment effect.