NFix {bage} | R Documentation |
Normal Prior with Fixed Variance
Description
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.
Usage
NFix(sd = 1)
Arguments
sd |
Standard deviation. Default is |
Details
NFix()
is the default prior for the intercept.
Value
An object of class "bage_prior_normfixed"
.
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 advance -
priors Overview of priors implemented in bage
-
set_prior()
Specify prior for intercept, main effect, or interaction
Examples
NFix()
NFix(sd = 10)
[Package bage version 0.9.0 Index]