Description Usage Arguments Value

`treat_assign`

computes the treatment variable T based on the cutoff of
assignment variables 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().

1 | ```
treat_assign(x, cut = 0, t.design = "l")
``` |

`x` |
The vector of assignment variable X. |

`cut` |
The cutoff of assignment variables X. |

`t.design` |
The treatment option according to design.
The entry is for X: |

`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.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.