Skip to content

The package cannot use this data. Treatment adoption is not simultaneous. #125

@Machine855

Description

@Machine855

Dear all:

I run the following code in R to test whether your synth function does work on my panel dataset:

library(haven)
testen <- read_dta("test files/testen.dta")
View(testen)
library(dplyr)
setup = panel.matrices(as.data.frame(as_tibble(testen)))

I got the following error message:

library(haven)
testen <- read_dta("test files/testen.dta")
View(testen)
library(dplyr)
setup = panel.matrices(as.data.frame(as_tibble(testen)))
Error in panel.matrices(as.data.frame(as_tibble(testen))) :
The package cannot use this data. Treatment adoption is not simultaneous.
In addition: There were 50 or more warnings (use warnings() to see the first 50)

Any help to solve this issue is greatly appreciated. Is this package also available for staggered treatments?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions