Closed levialtringer closed 1 year ago
My apologies for not checking into this before posting the issue. I reinstalled the most recent version of the etwfe
package.
remotes::install_version("etwfe", version = "0.3.1", repos = "http://cran.us.r-project.org")
The crux of the issue appeared to be outdated dependencies. Upon reinstallation, and updating all of the associated dependencies, the emfx()
function is now executing without error.
Comparing the sessionInfo()
output below to that given above shows the packages that were in need of updating, though I'm not sure which was(were) the culprit.
Again, my apologies and thanks for the package!
> # Session information:
> sessionInfo()
R version 4.0.4 (2021-02-15)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS 12.0.1
Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] etwfe_0.3.1
loaded via a namespace (and not attached):
[1] Rcpp_1.0.10 lattice_0.20-41 fixest_0.11.1 zoo_1.8-11 marginaleffects_0.10.0 grid_4.0.4 nlme_3.1-152 backports_1.4.1
[9] dreamerr_1.2.3 data.table_1.14.8 checkmate_2.1.0 generics_0.1.3 sandwich_3.0-2 Formula_1.2-5 tools_4.0.4 numDeriv_2016.8-1.1
[17] compiler_4.0.4 insight_0.19.0
No problem, and glad the rubber ducking helped.
FWIW version 0.3.1 is now on CRAN so you should be able to install directly rather than going through remotes.
Issue
Much thanks for the package! I was in search of a tool to implement the nonlinear DiD approach described by Wooldridge (2022) and this is exactly what I was was hoping to find.
Before applying
etwfe()
andemfx()
to my data, I tried to run the example code provided by the README and vignette. I was unable to replicate anyemfx()
results due to the following error (and additional warning):I'm not sure if this is a potential general issue with the recent
marginaleffects
update or if it is specific to me. I have placed the entirety of my code and output below in addition to a traceback of the error and my session information.Thanks in advance for any help!
Code
Output
Traceback
Code:
Output:
Session Information
Code:
Output: