treat_assign {rddapp} | R Documentation |
Treatment Assignment for Regression Discontinuity
Description
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().
Usage
treat_assign(x, cut = 0, t.design = "l")
Arguments
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 |
Value
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.