Learn R Programming

powerbrmsINLA (version 1.3.0)

.sample_design_prior: Sample a true effect from a design-prior specification

Description

Sample a true effect from a design-prior specification

Usage

.sample_design_prior(spec, n = 1L)

Value

Numeric vector of length n.

Arguments

spec

List with a dist element: "normal" (mean, sd), "uniform" (min, max) or "beta" (shape1, shape2).

n

Number of draws.