slope_for_power: Linear trend for which pre-trends tests have a given power...

View source: R/pretrends-plot.R

slope_for_powerR Documentation

Linear trend for which pre-trends tests have a given power level

Usage

slope_for_power(
  sigma,
  targetPower = 0.5,
  tVec,
  referencePeriod = 0,
  prePeriodIndices = which(tVec < referencePeriod)
)

Arguments

sigma.

The covariance matrix for the event-plot coefficients.

targetPower.

The desired power for the pre-test, which reject if any pre-treatment coefficient is significant at the 5

\item

tVec.The vector of time periods corresponding with the coefficients

\item

referencePeriod.(Optional) The omitted pre-treatment reference period normalized to 0. Default is t=0

\item

prePeriodIndices.(Optional) The indices of the event-plot corresponding with pre-treatment periods. Default is which(tVec<referencePeriod)

slope. The slope of the trend for which targetPower is achieved. This function computes the linear violation of parallel trends for which convention pre-trends tests have a pre-specified power level


jonathandroth/pretrends documentation built on March 31, 2024, 11:47 a.m.