[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: estout and likelihood ratio test

From   "Austin Nichols" <>
Subject   Re: st: estout and likelihood ratio test
Date   Thu, 25 Oct 2007 10:14:40 -0400

Raoul C Reulen <>--
Works fine if you save the scalar you want to add before you run the main model:

sysuse auto
glm mpg rep78, fam(pois)
est sto linear
glm mpg if rep78<., fam(pois)
est sto consonly
lrtest linear consonly
loc ptrend=r(p)
xi: glm pr i.rep78, fam(pois) eform
est store m
estadd scalar ptrend=`ptrend'
estout m, cells("b (fmt(%9.2f)) ci(par( ( , ) )) p(fmt(%9.4f))") eform

On 10/25/07, Raoul C Reulen <> wrote:
> I'm running a glm model and like to do a a likelihood ratio test. However, the likelihood ratio test is based
> on a slightly different model. I have difficulty getting the likelihood ratio estimates in a table that I created
> with estout. See output below
*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index