Coder Social home page Coder Social logo

Comments (4)

matthieugomez avatar matthieugomez commented on May 20, 2024

Sure, I will release a new version in the coming days. Out of curiosity, do you have a github repository for this command?

from fixedeffectmodels.jl.

droodman avatar droodman commented on May 20, 2024

Great.
https://github.com/droodman/reghdfejl Just posted. :-) Comments/issues welcome. I haven't thoroughly tested yet.

This is my second Stata package using Julia as a back-end. The other is boottest, which optionally calls Julia.

Some tests on Saturday revealed that the run time is now dominated by transferring the regressors between Stata and Python (as a bridge to Julia) and then transferring the sample marker back. I'm learning now to bypass Python by writing a C plug-in for Stata that uses the Julia C API. Maybe I'll have that going in a few days. It could run much faster.

In reghdfejl.ado, you'll see references to the fields of the returned result object, such as with m.esample. It seems to me this should be unnecessary, i.e., that all results should be accessible by wrapper functions, even if they are not part of the StatsBase standard. Requiring the user to access the fields directly violates data abstraction and could break user code in the future if the internal representation of results changes. Fields that I think currently can't be accessed via wrapper functions include esample, F, iterations, converged, r2_within, nclusters, ...

The main gap I see is there is nothing comparable to the DOF table that reghdfe displays after the main results. Are those return results easy are hard to add? (Also Root MSE is missing, pending access to the return result dof_fes.)

Maybe I should copy ivreghdfe and make it a wrapper for ivreg2 for IV models, just using FixedEffectModels.jl to partial out the FE.

from fixedeffectmodels.jl.

matthieugomez avatar matthieugomez commented on May 20, 2024

Great! I tagged a new version: JuliaRegistries/General#88397
Yes, feel free to add wrapper funciton in a pull request.
(I thing esample is Stataspeak so it should be renamed + converged feels too broad so maybe has_converged is better).

from fixedeffectmodels.jl.

droodman avatar droodman commented on May 20, 2024

Thank you. Except I couldn't install it:

(@v1.9) pkg> up FixedEffectModels
    Updating registry at `C:\Users\drood\.julia\registries\General.toml`
ERROR: Unsatisfiable requirements detected for package KernelAbstractions [63c18a36]:
 KernelAbstractions [63c18a36] log:
 ├─possible versions are: 0.1.0-0.9.8 or uninstalled
 └─restricted to versions 0.9.7 by an explicit requirement — no versions left

from fixedeffectmodels.jl.

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.