.bin_txt | R Documentation |
vector
(Internal) Extracts treatment as binary vector
.bin_txt(spec, data = NULL, dichotomy = NULL)
spec |
A |
data |
A dataframe with unit of assignment information and, if a dichotomy is provided, columns specified therein |
dichotomy |
Optional, a formula. See the Details section of the
|
If a dichotomy
is specified or the StudySpecification
has a treatment variable consisting only of 0/1 or NA
, then returns
the binary treatment. Otherwise (it has a non-binary treatment and lacks a
dichotomy) it errors.
A vector
of binary treatments
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.