set_prior: Change priors for available parameters

Description Usage Arguments Value Examples

View source: R/generics.R

Description

Change priors for available parameters

Usage

1

Arguments

par

name of the coefficient, given as b0 (intercept) or b1, ... for coefficients.

...

other arguments passed to function. In the case of intercept and coefficients, these are 'mu' and 'sd' (prior means and variances). In the case of the residual variance, the rate and shape/scale parameter must be passed as 'alpha' and 'beta'

Value

updated blm object with new priors

Examples

1
2
bfit <- set_prior(bfit,"b0", mu=40, sd=7)
bfit <- set_prior(bfit, "sigma", alpha=2, beta=1)

JasperHG90/blm documentation built on Sept. 4, 2019, 11:16 a.m.