Skip to contents

These functions are used to construct the data from a given formula. Handles change from factor into several dummies for example. They also create reference individuals at which to evaluate the MTE and MTR (if no default is provided). For the numerical variables, take the average of the variable; for the factors, take the first level.

Usage

construct_data(formula, data)

transform_factor(formula, data)

Arguments

formula

The formula of the model

data

The original dataset