Skip to contents

Extract model frame from synthdid object

Usage

# S3 method for class 'synthdid'
model.frame(formula, ...)

Arguments

formula

A synthdid object

...

Additional arguments (currently ignored)

Value

A list with call and terms information

Examples

# \donttest{
data(california_prop99)
result <- synthdid(PacksPerCapita ~ treated,
  data = california_prop99,
  index = c("State", "Year")
)
model.frame(result)
#> $call
#> synthdid(formula = PacksPerCapita ~ treated, data = california_prop99, 
#>     index = c("State", "Year"))
#> 
#> $terms
#> PacksPerCapita ~ treated
#> attr(,"variables")
#> list(PacksPerCapita, treated)
#> attr(,"factors")
#>                treated
#> PacksPerCapita       0
#> treated              1
#> attr(,"term.labels")
#> [1] "treated"
#> attr(,"order")
#> [1] 1
#> attr(,"intercept")
#> [1] 1
#> attr(,"response")
#> [1] 1
#> attr(,".Environment")
#> <environment: 0x55a9dcd876f8>
#> 
# }