check_data: Run all data related checks

View source: R/helpfunctions_checks.R

check_dataR Documentation

Run all data related checks

Description

Wrapper function to check that

  • all used variables are present in the data

  • that the classes of the variables are of a type for which default model types are defined

  • checks for empty variable levels

  • converts binary continuous variables and logical variables to factors

Usage

check_data(data, fixed, random, auxvars, timevar, mess, warn)

Arguments

data

a data.frame

fixed

a formula (or list of formulas)

random

a one-sided formula (or list of one-sided formulas)

auxvars

a one-sided formula

timevar

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

mess

logical, if TRUE messages are printed

warn

logical, if TRUE warnings are printed

Details

used in model_imp() (2025-09-04)

Value

the cleaned data.frame


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