Skip to contents

Fit an lmer model of the box-cox transformed deviation from the meta-analytic mean scores as a function of continuous peer-review ratings

Usage

fit_boxcox_ratings_cat(
  data,
  outcome,
  outcome_var,
  interceptless = FALSE,
  ...,
  env = rlang::caller_env()
)

Arguments

data

Data for model fitting

outcome

outcome variable, unquoted.

outcome_var

Variance of the outcome variable

interceptless

A logical relating to whether the model should be interceptless or not. Defaults to FALSE.

Value

An object of class lme4::lmerMod-class

Examples

  # Example Usage:
  # library(tidyverse);library(targets);library(metafor)
  # tar_load(meta_analysis_outputs)
  # meta_analysis_outputs$data[[1]] %>%
  #   fit_boxcox_ratings_cat(.,
  # outcome = box_cox_abs_deviation_score_estimate,
  #                                   outcome_var = VZr, interceptless = FALSE)