estimate_model: Estimate linear regression model

View source: R/simulate_trial_model2.R

estimate_modelR Documentation

Estimate linear regression model

Description

Estimate linear regression model

Usage

estimate_model(
  X,
  y,
  m0 = rep(0, ncol(X)),
  s0 = rep(10, ncol(X)),
  a0 = 0.01,
  b0 = 0.01,
  ...
)

Arguments

X

Design matrix

y

Response vector

m0

Prior mean

s0

Prior SD

a0

Prior shape

b0

Prior shape

...

Other arguments to 'vb_lm'


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