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.
Mathematical details
$$\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.
See also
N()
Similar toNFix()
, but standard deviation parameter is estimated from the data rather than being fixed in advancepriors Overview of priors implemented in bage
set_prior()
Specify prior for intercept, main effect, or interaction