validate_inputs: Validate Inputs to Bayesian A/B Simulation

Description Usage Arguments Value

Description

Check the validity of the parameters being used in the simulation.

Usage

1
validate_inputs(data_dists, priors, obs_per_round)

Arguments

data_dists

A named list of distribution objects. This list specifies the distributions that are used to generate data in simulations. Currently, the list must only have elements named 'a' and 'b'. See Details for more information.

priors

A named list of distribution objects. This list specifies the distributions that are used as priors when estimating some parameter from the data generating distribution. Currently, the list must only have elements named 'a' and 'b'. See Details for more information.

obs_per_round

A positive number that represents how many observations, across both variants, are generated before we update the prior distributions and evaluate the expected loss. This number must be divisible by the number of variants used. Default is 1000.

Value

NULL if all of the tests pass. Else, it will fail loudly.


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