Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: RE: Can't store estimates after logistic regression


From   Edouard Betsem <edouardbetsem@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: Can't store estimates after logistic regression
Date   Fri, 28 Jun 2013 14:54:09 -0700

It's still not working.
by is not allowed here and using separate returned this error code

[__00000E] not found
r(111);

I'm wondering if "roccomp" can be used with "estimates"

I've even renamed the _est_mod1 to mod1. It's on the editor table but I don't know why Stata can't find it

            logistic tma whoall
            est store mod1
            rename _est_mod1 mod1

            logistic tma study_2
            est store mod2
            rename _est_mod2 mod2
            roccomp tma _est_mod1 _est_mod2, graph summary

the estimates variables return the value "1" for all my observations.
Wish someone can help me solve this.
Thanks

Edouard BETSEM, MD, PhD


On 28/06/2013 00:48, Bley N'Dede wrote:
I am not sure but may be you should try something like

roccomp _est_mod1 _est_mod2, graph summary by(dis)
________________________________________
From: owner-statalist@hsphsun2.harvard.edu [owner-statalist@hsphsun2.harvard.edu] on behalf of Edouard Betsem [edouardbetsem@gmail.coou should try m]
Sent: Friday, June 28, 2013 7:29 AM
To: statalist@hsphsun2.harvard.edu
Subject: st: Can't store estimates

Hi,
I'm trying to use roccomp commande to compare AUC for two logistic
models. but stata won't store my estimates.

here are the commande lines.

* all counts with binary
              logistic dis ref
              est store mod1

              logistic dis stud
              est store mod2
              roccomp dis mod1 mod2, graph summary

and this is the message i have:

variable mod1 not found
r(111);

does anyone know the reason for this?
Best
Edouard




--
Edouard BETSEM, MD, PhD


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/



*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index