Statalist


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

RE: st: Estimates save and lincom - Stata10


From   Sp�rri-Fahrni Adrian <[email protected]>
To   <[email protected]>
Subject   RE: st: Estimates save and lincom - Stata10
Date   Wed, 7 Nov 2007 22:42:50 +0100

This is great! Thanks to Austin and Roger.

Wouldn't it be a nice feature to have the option store for estimates use?
estimate use filename, store

It'd bring back the saved estimation results directly to where we normally use them: in the memory.

Adrian

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Austin Nichols
Sent: Wednesday, November 07, 2007 6:03 PM
To: [email protected]
Subject: Re: st: Estimates save and lincom - Stata10

Try
lincom _b[urban]+_b[age], eform

On 11/7/07, Sp�rri-Fahrni Adrian <[email protected]> wrote:
> Dear statalisters
>
> Estimate save is a great command when your regressions run for a long time and you want to do some post estimations later on. Often I use lincom after an estimation command. However, it doesn't work properly after estimates use...
>
> Here's an example:
>
> version 10
> use http://www.stata-press.com/data/r10/bangladesh.dta, clear logistic 
> c_use urban age child* estimates save bangla1 , replace
>
> logistic c_use urban age
> estimates save bangla2 , replace
>
> clear all
>
> estimates use bangla1
> estimates store bangla1
> estimates use bangla2
> estimates store bangla2
>
> * the likelihood-ratio test works fine:
> lrtest bangla1 bangla2
>
> * but the lincom does not work (if the original dataset is not loaded):
> lincom urban+age, eform
>
> * a workaround is to create two empty variables:
> gen urban=.
> gen age=.
> lincom urban+age, eform
>
> Is there another way of using lincom after estimates use - without creating empty variables or loading the data?
>
> Thanks,
> Adrian
> [email protected]
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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