Author
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.
Suggested Citation
James Hardin, 2025.
"A generalized model specification system in Mata,"
2025 Stata Conference
01, Stata Users Group.
Handle:
RePEc:boc:usug25:01
Download full text from publisher
Corrections
All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:boc:usug25:01. See general information about how to correct material in RePEc.
If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.
We have no bibliographic references for this item. You can help adding them by using this form .
If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.
For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F Baum (email available below). General contact details of provider: https://edirc.repec.org/data/stataea.html .
Please note that corrections may take a couple of weeks to filter through
the various RePEc services.