lrtest performs a likelihood-ratio test of the null hypothesis that the parameter vector of astatistical model satisfies some smooth constraint. To conduct the test, both the unrestricted and the restricted models must be fit using the maximum likelihood method (or some equivalent method),and the results of at least one must be stored using estimates store; see [R] estimates store.