gen_priors: Generate Prior Distribution on Bandit Parameters

Description Usage Arguments Value

View source: R/setup.R

Description

Generate Prior Distribution on Bandit Parameters

Usage

1
gen_priors(nlevers, J, bas_type, alpha = 1, b = 1)

Arguments

nlevers

An integer representing the number of levers to choose from.

J

An integer representing the number coefficients that are being used in the non-parametric model. #' @param bas_type Either "fourier" or "poly".

alpha

Scaling parameter to tune the prior variances.

b

Hyperparameter for the inverse gamma distribution. Directly related to the rate of exploration.

Value

A list containing a prior distribution for the parameters associated with each lever. Each prior distribution is itself a a list containing the hyperparameters.


dfcorbin/npbanditC documentation built on March 23, 2020, 5:25 a.m.