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 observations above cutoff

- Xm
Running variable for observations below cutoff

- Xp
Running variable for observations above 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 |

kolesarm/RDHonest documentation built on Jan. 14, 2019, 7:04 a.m.

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.