A generalized model specification system in Mata
James Hardin
Additional contact information
James Hardin: University of South Carolina
2025 Stata Conference from Stata Users Group
Abstract:
We present the development and usage of the generalized model specification system (GMSS) Mata library to support the specification of regression models. This library allows users to gain access to all the options in Stata’s premier optimization routines. The library consists of classes for distributions and link functions. In addition, the library defines optimization routines callable from moptimize() moptimize() moptimize() moptimize(). The library consists of approximately 30 distributions for which users may specify associated covariates for each of the parameters. General models (zero-inflated, zero-altered, zero-marginalized, zero-truncated, and heaped) are usable with any count distribution in the library. Users are also free to develop and add distributions and link functions. All distributions have default link functions, but users are free to specify links as well. An ado-file is available for those users who prefer Stata-language implementations. Support commands for estat estat estat estat and predict predict predict predict are also included in the library. Factor-variable specification of covariate lists is allowed, and the library automatically generates associated constraint matrices. Example usage of do-files calling the Mata routines will be presented along with usage of the ado-file specification. While there is substantial overlap with specific existing models, the GMSS library includes many new distributions for interested developers and applications.
Date: 2025-08-08
References: Add references at CitEc
Citations:
Downloads: (external link)
http://repec.org/usug2025/US25_Hardin.zip
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:usug25:01
Access Statistics for this paper
More papers in 2025 Stata Conference from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().