Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Message when using att_gt(): lapply(X = unname(split(e, grp)), FUN = FUN, ...) : invalid formal argument list for "function" #194

Open
49470952 opened this issue Apr 15, 2024 · 2 comments

Comments

@49470952
Copy link

Hi,
I ran into an error message from using did package, att_gt(). My code set up is as below:
out<-did::att_gt(yname="value",
tname="month",
idname="eci",
gname="first.treated",
#xformla=~matchto,
data=dat3,
control_group=c("nevertreated","notyettreated"),
est_method = reg)

Error in lapply(X = unname(split(e, grp)), FUN = FUN, ...) :
invalid formal argument list for "function"

this R code worked for a couple of times, but for some reason, it started to give me an error message now. I am not sure what caused this error (would it be caused by a specific did version?).
Please can someone help me with this issue? Thank you very much in advance.

@pedrohcgs
Copy link
Collaborator

pedrohcgs commented Apr 15, 2024 via email

@49470952
Copy link
Author

sample.xlsx

Thanks for reply, above is the subset of the dataset I use. Also, I used below code to install 'did' package:

devtools::install_github("bcallaway11/did")
library(did)

Please let me know if you have any thoughts on solving this issue. Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants