Learn R Programming

powerbrmsINLA (version 1.1.1)

beta_weights_on_grid: Beta-Prior Weights Over an Effect Grid

Description

Computes prior weights over a grid of true effect values by evaluating a Beta(mode, n) prior. If the grid is not in (0,1), it is rescaled linearly.

Usage

beta_weights_on_grid(effects, mode, n)

Value

Normalised numeric weights over the grid (sum to 1).

Arguments

effects

Numeric vector of effect values (grid).

mode

Prior mode in (0,1).

n

Prior concentration (> 2).