Skip to contents

Creates a Beta prior distribution for the response rate of one group in an analysis of a single binary endpoint.

Usage

prior_beta(a, b)

Arguments

a, b

Positive shape parameters. prior_beta(0.5, 0.5) is the Jeffreys prior and prior_beta(1, 1) is the uniform prior.

Value

An object of class c("qdm_prior_beta", "qdm_prior") with elements a and b.

Examples

prior_beta(0.5, 0.5)
#> Prior: Beta(a = 0.5, b = 0.5)