Skip to contents

This function prepares the data for computing interaction values between variables. It filters the dataActual data frame by selecting only the rows where the categorical variables specified in categorical_vars are at their reference levels.

Usage

prepareData2computeInteraction(
  categorical_vars,
  categorical_varsInInteraction,
  dataActual
)

Arguments

categorical_vars

A character vector containing the names of categorical variables.

categorical_varsInInteraction

A character vector containing the names of categorical variables involved in interactions.

dataActual

A data frame containing the actual data with categorical variables and associated expression levels.

Value

A data frame containing the filtered data for computing interaction values.