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

Amending -mlbeta- (Was RE: st: Adding -nocons- to -mlbeta-)


From   "Clive Nicholas" <Clive.Nicholas@newcastle.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Amending -mlbeta- (Was RE: st: Adding -nocons- to -mlbeta-)
Date   Fri, 27 May 2005 01:19:35 +0100 (BST)

Richard Williams replied:

My apologies in replying slowly to this very detailed message.

[...]

>>tokenize `varlist'
>>marksample touse
>>if "`svy'"!=""{
>>         svymarkout `touse'
>
> touse is not getting used in the subsequent code.  Further, md cases in
> the
> dispersion varlist aren't getting knocked out.  So, this isn't coded
> right,
> but maybe it doesn't hurt you.  However, I'm guessing it would be good to
> add a line like
>
> markout `touse' `dispersion'
>
>
>>ml model lf mlbeta_ll (`lhs'=`rhs', noconstant) (`dispersion') `if' `in',
>>  `robust' `svy'
>
> What I think you want is
>
> ml model lf mlbeta_ll (`lhs'=`rhs', `nocons') (`dispersion') if `touse',
>   `robust' `svy'
>
> When calling mlbeta, it will then be your choice whether to include the
> constant or not.

Although I'm already satisfied with the changes I've been able to make to
the -mlbeta- code (thanks to Statalist), I tried out Rich's suggestions
just to see what it would do. The end result is that it produces the same
model with exactly the same statistics.

CLIVE NICHOLAS        |t: 0(044)7903 397793
Politics              |e: clive.nicholas@ncl.ac.uk
Newcastle University  |http://www.ncl.ac.uk/geps

*
*   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