EconPapers    
Economics at your fingertips  
 

XTGAMFE: Stata module to perform fixed-effects gamma regression with log link for strictly positive panel outcomes

M. Christopher Roebuck ()
Additional contact information
M. Christopher Roebuck: RxEconomics LLC

Statistical Software Components from Boston College Department of Economics

Abstract: xtgamfe fits a gamma regression with a log link and a fixed effect for each panel to a strictly positive outcome. The conditional mean is mu_it = exp(alpha_i + x_it'beta + offset_it). For any value of beta the fixed effects have a closed-form solution, so they are substituted out and the coefficients are found by Newton's method on a criterion in beta alone. That criterion is convex. No indicator variables are created, and run time grows linearly with the number of observations.

Language: Stata
Requires: Stata version 15
Keywords: gamma regression; fixed effects; log link (search for similar items in EconPapers)
Date: 2026-11-14
Note: This module should be installed from within Stata by typing "ssc install xtgamfe". The module is made available under terms of the MIT license (https://opensource.org/licenses/MIT).
References: Add references at CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/x/xtgamfe.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/x/xtgamfe_estat.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/x/xtgamfe_p.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/x/xtgamfe.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/x/xtgamfe_example.dta

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s460029

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2026-11-23
Handle: RePEc:boc:bocode:s460029