Skip to contents

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 1.

Value

An object of class "bage_prior_normfixed".

Details

NFix() is the default prior for the intercept.

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 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

Examples

NFix()
#>   NFix() 
#>       sd: 1
NFix(sd = 10)
#>   NFix(sd=10) 
#>       sd: 10