equivBetaPars: Function to calculate beta prior parameters with data from a...

Description Usage Arguments Details Value

View source: R/Bayesian Helper Functions.R

Description

Function to calculate beta prior parameters with data from a more general population

Usage

1
equivBetaPars(Nk = NULL, Sk = NULL, Fk = NULL, equiv.obs = 5)

Arguments

Nk

Number of trials/observations (must be positive if supplied)

Sk

Number of successful trials (must be positive if supplied)

Fk

Number of failed trials (must be positive if supplied)

equiv.obs

Number of equivalent observations supplied by the prior distribution

Details

Two of Nk, Sk, Fk must be supplied (non-null); the third will be calculated.

Value

data frame with columns alpha and beta, representing parameters shape1 and shape2 of a beta distribution


srvanderplas/nppd documentation built on May 30, 2019, 8:42 a.m.