Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: difficulty with aflogit command


From   Richard Williams <[email protected]>
To   [email protected]
Subject   Re: st: difficulty with aflogit command
Date   Sun, 29 May 2011 10:35:58 -0500

At 12:54 AM 5/29/2011, Ari Samaranayaka wrote:
Hi
I am having difficulty with the user-written command aflogit.
Although it is expected to work after unconditional logit or poisson it does not work for me.

As to why it stopped working in Stata 11 -- aflogit.ado includes the code

        #delimit ;
if "$S_E_cmd" != "logistic" & "$S_E_cmd" != "logit" & "$S_E_cmd" != "blogit"
         & ("$S_E_cmd" != "glm" | "$S_E_fam" != "bin" | "$S_E_link" != "l")
         & ("$S_E_cmd" != "glm" | "$S_E_fam" != "poi")
         & "$S_E_cmd" != "poisson" {;
disp in red "Can only be used after unconditional logistic or poisson regression";
                error 301;
        };

For whatever reason, it appears that Stata's -logit- stopped setting those macros starting with version 11. If somebody were so inclined, they could probably rewrite aflogit using e(cmd) instead.

aflogit was written for version 5 of Stata, so presumably you could get it to work with any supported command by doing something like

version 5: command...
aflogit


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  [email protected]
WWW:    http://www.nd.edu/~rwilliam

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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index