Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: -by- with -binreg-


From   Weihua Guan <wguan@stata.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Re: -by- with -binreg-
Date   Wed, 04 Dec 2002 15:43:46 -0600

--Lee Sieswerda <Lee.Sieswerda@tbdhu.com> wrote,

> For some reason I cannot get -by- to work with -binreg-. I can get around
> the problem using -if-, but according to the manual I should be able to use
> -by-.
[...]

and Nick Winter pointed out 

> Looking at the ado code for -binreg-, it seems that -binreg- is a
> wrapper for -glm-, [...]
> you can just call -glm- directly, which does properly support "by
> varlist:".  The (undocumented?) "cmd" option of -binreg- seems to tell
> you the necessary -glm- syntax.
>

Nick is correct that -binreg- calls -glm- to fit the model, so Lee can
actually use -glm- with -by- prefix to work around.  We will look into
-binreg- and have the problem fixed.

Weihua Guan <wguan@stata.com>
Stata Corp.

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index