Code Monkey home page Code Monkey logo

Comments (3)

lrberge avatar lrberge commented on August 18, 2024

Hi, indeed, there's currently no tool to extract the marginal effects in the package.
But marginal effects are in the pipelines, although not quite there yet.

What you suggest is just a subsample of all possibilities that a function computing the marginal effects should have (i.e. it should be valid for any family, provide elasticities and semi-elasticities, not only be computed at means but for given values too).
Further, I should also ensure integration with other functions of the package (in particular summary and etable for exports).
Although it's straightforward to implement just what you suggest, when I create the real function which is more general, I would have to redesign the internal code for it to be simple and efficient. I would also have to add, modify and redefine the arguments of the original (small) marginal effects function -- and changes in arguments across package versions is really something that I don't like.
So I can't implement what you suggest at the moment because for me it would mean double work + headaches.

In your situation, I suggest to implement it yourself. For these families it's pretty straightforward since there are closed form solutions.

To finish, another reason I didn't implement marginal effects in the first place is that I don't recommend using my package so much for logit/probit models because of the incidental parameter problem (IPP). This implies systematic biases in the coefficients (for short panels) and would require to be solved, either with a jackknife or with an analytical bias correction (btw I'll implement the bias correction one day--but not yet).
I recommend instead to use the alpaca package. I shall also drop the benchmark with the logit in the README of the package because it can be misleading (at least users need to be aware of the IPP which is often not the case).

from fixest.

lrberge avatar lrberge commented on August 18, 2024

I'm closing it then.

from fixest.

lrberge avatar lrberge commented on August 18, 2024

Following demand from other users, I've written some code that computes the marginal effect at means.

It's not in the package because very meagre but it's functional. You can find it here: https://github.com/lrberge/fixest/blob/master/_Code%20snippets/fixest_snippets.R

It's just at means at the moment. Feel free to improve/extend it!

from fixest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.