update_prior: Update Prior Parameters

Description Usage Arguments

Description

Use observed data to update parameters of prior distribution

Usage

1
update_prior(prior, evidence = NULL, stats = NULL, ...)

Arguments

prior

An object of class 'beta_dist', 'normal_gamma_dist' , or 'gamma_dist' that specifies the parameters of some distribution

evidence

A numeric vector that contains observed data. Default is NULL, will override stats if specified.

stats

An object of class 'beta_stats', 'normal_gamma_stats', or 'gamma_stats' that contains sufficient statistics for the update. Default is NULL, will be ignored if evidence is specified.

...

Arguments to be passed onto other methods


convoyinc/abayes documentation built on May 12, 2019, 1:34 a.m.