check_vars_in_data: Check that all variables in formulas are in the data

View source: R/helpfunctions_checks.R

check_vars_in_dataR Documentation

Check that all variables in formulas are in the data

Description

Check that all variables in formulas are in the data

Usage

check_vars_in_data(datanames, fixed = NULL, random = NULL,
  auxvars = NULL, timevar = NULL)

Arguments

datanames

a character vector (of all variable names in the data)

fixed

the fixed effects formula (or list of formulas)

random

the random effects formula (or list of formulas)

auxvars

one-sided formula of auxiliary variables

timevar

a character string (name of the time variable, used in joint models)

Value

nothing, but throws an error if a variable is missing


JointAI documentation built on Jan. 30, 2026, 5:07 p.m.