Skip to contents

Print results of the matrix completion method.

Usage

# S3 method for fect
print(x, switch.on = TRUE,
       switch.off = FALSE,time.on.lim = NULL, time.off.lim = NULL, ...)

Arguments

x

a fect object.

switch.on

a logical value that specifies whether to print switch.on effect.

switch.off

a logical value that specifies whether to print switch.off effect.

time.on.lim

a two-element numeric vector specifying the range of term of switch-on treatment effects. e.g. time.on.lim = c(-1,1).

time.off.lim

a two-element numeric vector specifying the range of term of switch-off treatment effects. e.g. time.off.lim = c(-1,1).

...

other argv.

Value

No return value.

Author

Licheng Liu; Ye Wang; Yiqing Xu; Ziyi Liu

References

Jushan Bai. 2009. "Panel Data Models with Interactive Fixed Effects." Econometrica.

Yiqing Xu. 2017. "Generalized Synthetic Control Method: Causal Inference with Interactive Fixed Effects Models." Political Analysis.

Athey, Susan, et al. 2021 "Matrix completion methods for causal panel data models." Journal of the American Statistical Association.

Licheng Liu, et al. 2022. "A Practical Guide to Counterfactual Estimators for Causal Inference with Time-Series Cross-Sectional Data." American Journal of Political Science.

For more details about the matrix completion method, see https://github.com/susanathey/MCPanel.

See also

Examples

library(fect)
data(fect)
out <- fect(Y ~ D + X1 + X2, data = simdata1, 
            index = c("id","time"), force = "two-way",
            CV = TRUE, r = c(0, 5), se = 0, parallel = FALSE) 
print(out)
#> Call:
#> fect.formula(formula = Y ~ D + X1 + X2, data = simdata1, index = c("id", 
#>     "time"), force = "two-way", r = c(0, 5), CV = TRUE, se = 0, 
#>     parallel = FALSE)
#> 
#> ATT:
#>                             ATT
#> Tr obs. equally weighted  3.489
#> Tr units equally weighted 2.929
#> 
#> Covariates:
#>     Coef
#> X1 0.928
#> X2 3.052
#> 
#> Uncertainty estimates not available.