In order to be able to use e.g., TMLE, with a continuous outcome, it is necessary to bound it between 0 and 1. This function performs the necessary steps.

bound_outcome(dat, var)

Arguments

dat

A dataframe containing the variables of interest. A dataframe.

var

The variable name corresponding to the outcome to be bounded. A string.

Value

A dataframe containing the bounded outcome.