Coder Social home page Coder Social logo

brfeglm's Introduction

BRFEGLM: estimate bias reduced fixed effect glm in Stata.


Overview

brfeglm is a Stata command that estimates bias-reduced fixed effects glm models for probit, logit and cloglo by iterative weighted least squares (IWLS) and with a large dummy-variable set.

The program builds upon brglm, but is tailored to the estimation of fixed effects, it is much faster, omits the fixed effects from the regression output but extracts and stores them automatically in a new variables.

Works with margin command.

In combination with the package fese_fast it further allows to also get an estimate of the fixed effects standard error.

Installation

Can be installed in STATA via:

* Install the most recent version of -brfeglm-
net install brfeglm, from("https://raw.githubusercontent.com/JohannesSKunz/brfeglm/master") replace

Example

Here is the Stata script:

webuse union
drop if idcode>1000

* Fixed-effects BRGLM probit regression
brfeglm union age grade not_smsa, model(probit) identifier(idcode)

* Same as above, but with clustered standard errors
brfeglm union age grade not_smsa, model(probit) identifier(idcode) cluster(idcode) savef

*Summarise the fixed effects estimates
su __feidcode*

*Calculate average marginal effects
margins, dydx(*)

Update History

  • March 15, 2021
    • initial commit

Authors:

Alexander Ballantyne
University of Melbourne

Johannes Kunz
Monash University

Kevin E. Staub
University of Melbourne

Rainer Winkelmann
University of Zurich

References:

Bias reduced canonical link function models:

Firth, David. 1993. Bias Reduction of Maximum Likelihood Estimates. Biometrika. 80(1): 27-38.

Bias reduced generalised linear models:

Kosmidis, I., & Firth, D. 2009. Bias Reduction in Exponential Family Nonlinear Models. Biometrika, 96(4): 793-804.

Bias reduced fixed effect generalised linear models:

Kunz, J. S., K. E. Staub, & R. Winkelmann. 2021. Predicting Individual Effects in Fixed Effects Panel Probit Models. Journal of the Royal Statistical Society: Series A. 184(3): 1109-1145.

Published applications:

Buchmueller, T. C., Cheng, T. C., Pham, N. T., & K. E. Staub. (2021). The effect of income-based mandates on the demand for private hospital insurance and its dynamics. Journal of Health Economics, 75, 102403.

Kunz, J. S. & C. Propper. (2022). JUE Insight: Is Hospital Quality Predictive of Pandemic Deaths? Evidence from US Counties. Journal of Urban Economics, 103472.

Kung C. S. J., Kunz, J. S. & M. Shields. (2023). COVID-19 Lockdowns and Changes in Loneliness among Young People in the U.K. Social Science & Medicine. In press.

Krause, D. (2023). Armed Conflicts With Al-Qaeda and the Islamic State: The Role of Repression and State Capacity. Journal of Conflict Resolution, 0(0). In press. Replication files here.

brfeglm's People

Contributors

johannesskunz avatar lapadre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

arlionn econwang

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.