jonathandroth/pretrends: Power Calculations and Visualization for Pre-trends

This package provides tools for evaluating the power of pre-trends tests, as well as the potential distortions from pre-testing. Given a hypothesized difference in trends, the user can calculate the power of the pre-trends test to detect the trend, and the expected bias conditional on passing the pre-test. The user can also calculate the linear violations of parallel trends against which the pre-test has a particular power level. The package also provides tools for visualizing violations of parallel trends on an event-plot.

Getting started

Package details

AuthorJonathan Roth
MaintainerJonathan Roth <jonathan.roth@microsoft.com>
LicenseMIT + file LICENSE
Version0.1.0
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("jonathandroth/pretrends")
jonathandroth/pretrends documentation built on March 31, 2024, 11:47 a.m.