Skip to contents

Check input for interaction

Usage

check_input2interaction(name_interaction, list_var, between_var, mu, sd)

Arguments

name_interaction

String specifying the name of the interaction (example: "varA:varB")

list_var

A list of variables (already initialized)

between_var

A vector of variable names to include in the interaction

mu

Either a numeric value or a numeric vector (of length = level)

sd

Either numeric value or NA

Value

NULL (throws an error if the input is invalid)