Description Usage Arguments Value Examples

Computes Regression Discontinuity Design Effects (RDDE) either based on analytic deviations (up to second order with interactions), an empirical score variable, or simulation.

1 2 3 4 |

`sim` |
logical; if |

`score` |
vector; score variable. |

`p` |
proportion of units in the treatment condition. |

`cutoff` |
decision threshold. |

`treat.lower` |
logical; if |

`order` |
integer >= 0; order of polynomial functional form specification for the score variable. |

`interaction` |
logical; if |

`mu` |
mean of (uncentered) truncated normal - applies when |

`sigma` |
standard deviation of (uncentered) truncated normal - applies when |

`k1` |
left truncation point for (uncentered) empirical, truncated normal, or uniform distribution. |

`k2` |
right truncation point for (uncentered) empirical, truncated normal, or uniform distribution. |

`dists` |
char; type of distribution, |

`ndraw` |
number of draws - applies when |

`nsim` |
number of simulations - applies when |

`parms` |
list; list of parameters used in the computation. |

`cutoff` |
decision threshold (computed if |

`treat.lower` |
if |

`p` |
proportion of subjects treated (computed if |

`order` |
order of polynomial specification for the score variable. |

`interaction` |
if |

`center` |
if |

`rdde` |
regression discontinuity design effect. |

1 2 3 4 5 6 | ```
# based on an empirical score variable
inspect.score(score = rnorm(10000), cutoff = 0)
# based on analytic derivation
inspect.score(cutoff = 0)
# based on simulation
inspect.score(sim = TRUE, cutoff = 0)
``` |

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.