estimate_lm_model: Estimate linear regression model using variational...

estimate_lm_modelR Documentation

Estimate linear regression model using variational approximation.

Description

Estimate linear regression model using variational approximation.

Usage

estimate_lm_model(
  dat,
  prior = c(int_prior_mean = 40, int_prior_sd = 5, b_prior_sd = 5, df = 3, scale = 5),
  ctr = contr.treatment
)

Arguments

dat

A dataset

prior

A vector giving prior parameters: intercept prior mean, intercept prior sd, effect prior sd, variance prior df, variance prior scale. Note that the assumed prior on the variance is Half-t(df, scale) and on effects is Normal(0, effect_sd).

ctr

A contrast specification


jatotterdell/mfittrial documentation built on Sept. 30, 2022, 12:23 p.m.