Skip to contents

This function compares the mixed-effects inference obtained from a mixed-effects model to expected values derived from a ground truth dataset. The function assumes a specific type I mixed-effect structure in the input model.

Usage

inferenceToExpected_withMixedEff(tidy_tmb, ground_truth_eff, formula_used)

Arguments

tidy_tmb

tidy model results obtained from fitting a mixed-effects model.

ground_truth_eff

A data frame containing ground truth effects.

formula_used

formula used to fit model

Value

A data frame with the comparison of estimated mixed effects to expected values.

Examples

if (FALSE) {
inferenceToExpected_withMixedEff(tidy_tmb(l_tmb), ground_truth_eff)
}