new_prior: Generate Prior Distrbution

Description Usage Arguments Value

View source: R/class_defn.R

Description

This function generates an object of class "distribution" that contains the prior hyperparameters for our MAB model.

Usage

1
new_prior(J, alpha = 1, a = 3, b = 1)

Arguments

J

The number of basis functions to use in the model (NOT INCLUDING THE INTERCEPT).

alpha

A scaling parameter for the prior variances. The prior variance of the i'th model coefficient is given by i^-alpha (the intercept is the 0'th coefficient, and has a prior variance of 1).

a

The shape parameter for the inverse gamma distribution.

b

The scale parameter for the inverse gamma distribution.

Value

An object of S4 class "distribution".


dfcorbin/MABsim documentation built on April 26, 2020, 8:26 a.m.