estimate_lmm_model: Estimate the model

estimate_lmm_modelR Documentation

Estimate the model

Description

Estimate the model

Usage

estimate_lmm_model(
  dat,
  zero_sum = F,
  scale = "none",
  int_prior_sd = 10,
  b_prior_sd = 10
)

Arguments

dat

The data (as a data.table)

zero_sum

Use sum-to-zero coding

scale

Character string indicating how to centre/scale responses, default is 'none', other options are 'all' or 'baseline'.

int_prior_sd

Prior standard deviation on intercept parameter

b_prior_sd

Prior standard deviation used for all other population parameters

Value

A list giving the mean and variance of the variational approximation to the fixed effects


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