Description Usage Arguments Value Examples

Convert data to standardized format for use with low-level functions. If the cutoff for treatment is non-zero, shift the running variable so that cutoff is at zero.

1 | ```
RDData(d, cutoff)
``` |

`d` |
data frame with first column corresponding to outcome variable,
second column corresponding to running variable and optionally a column
called |

`cutoff` |
specifies the RD cutoff in the running variable. |

An object of class `"RDData"`

, which is a list containing the
following components:

- Ym
Outcome vector for observations below cutoff

- Yp
Outcome vector for observationsabove cutoff

- Xm
Running variable for observations below cutoff

- Xp
Running variable for observationsabove cutoff

- sigma2m
Conditional variance of outcome for observations below cutoff

- sigma2p
Conditional variance of outcome for observations above cutoff

- orig.cutoff
Original cutoff

itemvar.namesNames of outcome and running variable in supplied data frame

1 2 |

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.