[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: Eureka! (Was RE: st: Adding -nocons- to -mlbeta-)
At 12:54 AM 5/25/2005 +0100, Clive Nicholas wrote:
Glad you've got it going. Sounds like it was close to being right a few
messages ago, but adding noconstant to the dispersion equation zapped
you. I'm not sure what made the collinearity issue go away though. A few
comments on the code:
By George, I've got it! I reloaded -mlbeta- again, added two codes only
referring to the -nocons- options, and:
As things now stand, the -nocons- option doesn't do anything because it is
not used in the subsequent code. I'll note below how to change that.
syntax varlist [if][in] [,DIspersion(varlist)] [,Robust] [,svy] [,Nocons]
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'
What I think you want is
ml model lf mlbeta_ll (`lhs'=`rhs', noconstant) (`dispersion') `if' `in',
ml model lf mlbeta_ll (`lhs'=`rhs', `nocons') (`dispersion') if `touse',
When calling mlbeta, it will then be your choice whether to include the
constant or not.
* For searches and help try: