Economics at your fingertips  

LMTEST: Stata module to perform Lagrange multiplier test after constrained maximum likelihood estimation

Harald Tauchmann ()

Statistical Software Components from Boston College Department of Economics

Abstract: lmtest performs a Lagrange-multiplier (LM) test (Silvey, 1959), also referred to as a score test, of the restrictions that were previously imposed on the most recently estimated model by specifying the option constraints(). lmtest complements test and lrtest that implement the Wald test and the likelihood ratio test, respectively, which - together with the Lagrange-multiplier test - represent the three canonical approaches to testing hypotheses after maximum likelihood (ML) estimation (cf. Greene, 2012, p. 564). lmtest requires that the preceding estimation command allows the option constraints() and the maximization options iterate() and from(), and also requires that the constraints are saved in e(Cns) and the score vector is saved in e(gradient). Unlike test, the syntax of lmtest does not involve specifying the restrictions to be tested. The restrictions are rather specified by the option constraints() in the command syntax used for estimating the model. This corresponds to the logic of the Lagrange multiplier test to estimate only the restricted version of a model.

Language: Stata
Requires: Stata version 15
Keywords: Lagrange multiplier test; maximum likelihood; constraints (search for similar items in EconPapers)
Date: 2021-02-24
Note: This module should be installed from within Stata by typing "ssc install lmtest". The module is made available under terms of the GPL v3 ( Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations: Track citations by RSS feed

Downloads: (external link) program code (text/plain) help file (text/plain)

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:

Ordering information: This software item can be ordered from

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 2022-06-28
Handle: RePEc:boc:bocode:s458914