compute.MDiD

Share:

Description

Internal function for computing the actual value for MDiD

Usage

1
2
3
compute.MDiD(formla, t, tmin1, tname, x = NULL, data,
  dropalwaystreated = TRUE, panel = FALSE, plot = FALSE, idname = NULL,
  uniqueid = NULL, probs = seq(0.05, 0.95, 0.05))

Arguments

formla

The formula y ~ d where y is the outcome and d is the treatment indicator (d should be binary)

t

The 3rd time period in the sample (this is the name of the column)

tmin1

The 2nd time period in the sample (this is the name of the column)

tname

The name of the column containing the time periods

x

A vector of covariates (the name of the columns)

data

The name of the data.frame that contains the data

dropalwaystreated

How to handle always treated observations in panel data case (not currently used)

plot

Boolean whether or not the estimated QTET should be plotted

idname

The individual (cross-sectional unit) id name

probs

A vector of values between 0 and 1 to compute the QTET at