View source: R/bage_prior-constructors.R
NFix | R Documentation |
Normal prior where, in contrast to N()
, the
variance is treated as fixed and known. Typically
used for main effects or interactions where there
are too few elements to reliably estimate variance
from the available data.
NFix(sd = 1)
sd |
Standard deviation. Default is |
NFix()
is the default prior for the intercept.
An object of class "bage_prior_normfixed"
.
\beta_j \sim \text{N}(0, \tau^2)
where \beta
is the main effect or interaction,
and a value for sd
is supplied by the user.
N()
Similar to NFix()
, but standard deviation
parameter is estimated from the data rather
than being fixed in advance
priors Overview of priors implemented in bage
set_prior()
Specify prior for intercept,
main effect, or interaction
NFix()
NFix(sd = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.