
Treatment Assignment for Regression Discontinuity
treat_assign.Rdtreat_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().
Arguments
- x
A numeric vector containing the assignment variable,
x.- 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
"g"(treatment is assigned ifxis greater than its cutoff),"geq"(treatment is assigned ifxis greater than or equal to its cutoff),"l"(treatment is assigned ifxis less than its cutoff), and"leq"(treatment is assigned ifxis less than or equal to its cutoff). The default is"l".