treat_assign | R Documentation |
treat_assign
computes the treatment variable, t
, based on the cutoff of
assignment variable, x
.
This is an internal function and is typically not directly invoked by the user.
It can be accessed using the triple colon, as in rddapp:::treat_assign().
treat_assign(x, cut = 0, t.design = "l")
x |
A numeric vector containing the assignment variable, |
cut |
A numeric value containing the cutpoint at which assignment to the treatment is determined. The default is 0. |
t.design |
A string specifying the treatment option according to design.
Options are |
treat_assign
returns the treatment variable as a vector according to the design,
where 1 means the treated group and 0 means the control group.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.