Description Usage Arguments Value
This function generates an object of class "distribution" that contains the prior hyperparameters for our MAB model.
1 | new_prior(J, alpha = 1, a = 3, b = 1)
|
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. |
An object of S4 class "distribution".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.