View source: R/pretrends-plot.R
slope_for_power | R Documentation |
slope_for_power(
sigma,
targetPower = 0.5,
tVec,
referencePeriod = 0,
prePeriodIndices = which(tVec < referencePeriod)
)
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 \itemtVec.The vector of time periods corresponding with the coefficients \itemreferencePeriod.(Optional) The omitted pre-treatment reference period normalized to 0. Default is t=0 \itemprePeriodIndices.(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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.