DID: Difference-in-Difference Estimator when multiple units are...

Description Usage Arguments Value Examples

View source: R/DID.R

Description

Difference-in-Difference Estimator when multiple units are missing.

Usage

1
DID(M, mask)

Arguments

M

Matrix of observed entries. The input should be N (number of units) by T (number of time periods).

mask

Binary mask with the same shape as M containing observed entries.

Value

The matrix with all missing entries filled.

Examples

1
DID(matrix(c(1,2,3,4),2,2), matrix(c(1,1,1,0),2,2))

susanathey/MCPanel documentation built on May 29, 2019, 9:51 a.m.