Comments (10)
Sure, no problem: vincentarelbundock/marginaleffects@42c49a1
from etwfe.
Hmmm, that definitely doesn't seem right. Can you please paste your sessionInfo()
results below.
Also, which version of Ubuntu are you on?
from etwfe.
Thanks for the quick response, Grant. The sessionInfo() is below. I am using Ubuntu 22.10.
from etwfe.
Sorry @romkhun, I'm genuinely stumped for the moment. I can see that you have the latest version of the core packages (namely, etwfe
and marginaleffects
). Let me ask this: Did you install the CRAN version of etwfe
or the development version?
from etwfe.
Actually, I tried both.
install.packages("etwfe", repos = "https://grantmcdermott.r-universe.dev")
install.packages("etwfe")
Neither works for me.
from etwfe.
Hi again @romkhun. So I just tested the package/example on an Ubuntu docker image and everything works as expected. Combined with the fact that all of my CI tests are passing (incl. two on Ubuntu), I think we can surmise that the problem has something to do with your particular system. Sorry, I know that's not helpful but I really can't reproduce this behaviour.
At this point, my next and possibly only best guess is that you have some kind of weird namespace clash. From your sessionInfo
I can see that you have a bunch of other packages loaded. Can you please try in a fresh session with only etwfe
loaded?
from etwfe.
@romkhun See my previous comment. Please let me know if it works in a fresh session without a bunch of other libraries loaded at the same time. Otherwise, I'll have to close since I can't reproduce.
from etwfe.
Closing since I cannot reproduce this behaviour.
from etwfe.
I got the same bug using R version 4.2.3
and the newest versions of etwfe
and marginaleffects
.
The issue seems to be with the insight
package and the way it gets the modeldata from fixest
; this is done inside the marginaleffects
package.
The returned data is passed through to get_contrast_data
here and because the .Dtreat
variable is not to be found inside modeldata
the error is raised.
Upgrading from insight
version 0.19.1
to 0.19.7
solved it for me.
from etwfe.
Upgrading from insight version 0.19.1 to 0.19.7 solved it for me.
Thanks @jsr-p, that's useful to know. I can easily add insight >= 0.19.7
to etwfe
's Imports. But I'm wondering if this version requirement should rather be done upstream in marginaleffects
, since this behavior may affect other similar cases. Any thoughts @vincentarelbundock?
from etwfe.
Related Issues (20)
- .Dtreat should be logical instead of integer
- Allow time-varying covariates
- marginaleffects slow in large data sets HOT 8
- emfx could be smarter about xvar
- Error: Error in variable_classes[[v$name]] : subscript out of bounds HOT 6
- Two errors: (1) "Warning message: The demeaning algorithm did not converge, the results are not reliable. (tol: 1e-06, iter: 2036)" and (2) "Error: Class of the `.Dtreat` variable is class is not supported." HOT 4
- `marginaleffects` 0.10.0 is on its way to CRAN HOT 1
- Error: The function supplied to the `transform_pre` argument must accept two numeric vectors of predicted probabilities of length 0, and return a single numeric value or a numeric vector of length 0, with no missing value. HOT 2
- emfx() error when using offset in Poisson HOT 21
- Query RE Heterogeneous treatment effects HOT 13
- Inference using fixest's aggregate command HOT 7
- Question about simple ATT using never treated control group HOT 6
- Anticipation HOT 1
- Lee and Wooldridge HOT 1
- emfx() not aggregating when the data already includes a variable named 'group' HOT 4
- Including weights? HOT 1
- Interaction with continuous variable HOT 5
- Error when trying to use emfx function. "Models of class "etwfe" are not supported." HOT 2
- Proportional ATTs for Poisson Regressions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from etwfe.