IDEAS home Printed from https://ideas.repec.org/p/boc/dsug23/09.html
   My bibliography  Save this paper

lgrgtest: Lagrange multiplier test after constrained maximum-likelihood estimation using Stata

Author

Listed:
  • Harald Tauchmann

    (FAU Erlangen-Nürnberg)

Abstract

Besides the Wald and the likelihood-ratio test, the Lagrange multiplier test (Rao 1948; Aitchison and Silvey 1958; Silvey, 1959)—also known as the score test—is the third canonical approach to testing hypotheses after maximum likelihood estimation. While the Stata commands test and lrtest implement the former two, real Stata does not have a general command for implementing the latter. This presentation introduces the new community-contributed Stata postestimation command lgrgtest that allows for straightforwardly using Lagrange multiplier test after constrained maximum-likelihood estimation. lgrgtest is intended to be compatible with all Stata estimation commands that use maximum likelihood and allow for the options constraints(), iterate(), and from() and obey Stata's standards for the syntax of estimation commands. lgrgtest can also be used after cnsreg. lgrgtest draws on Stata’s constraint command and the accompanying option constraints(), which only allows for imposing linear restrictions on a model. This results in the limitation of lgrgtest being confined to testing linear constraints only. A (partial) replication of Egger et al. (2011) illustrates the use of lgrgtest in applied empirical work.

Suggested Citation

  • Harald Tauchmann, 2023. "lgrgtest: Lagrange multiplier test after constrained maximum-likelihood estimation using Stata," German Stata Conference 2023 09, Stata Users Group.
  • Handle: RePEc:boc:dsug23:09
    as

    Download full text from publisher

    File URL: http://repec.org/dsug2023/germany23_Tauchmann.pdf
    Download Restriction: no
    ---><---

    More about this item

    Statistics

    Access and download statistics

    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:dsug23:09. 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.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.