.apply_dichotomy | R Documentation |
Given a dichotomy formula and a data.frame
with a
treatment variable and any variables in the formula, returns a
vector
containing only 0
, 1
, or NA
.
.apply_dichotomy(txt, dichotomy)
txt |
A named |
dichotomy |
A formula specifying how to dichotomize the non-binary
treatment column in |
A vector
of binary treatments
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.