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

Re: st: Adding -nocons- to -mlbeta-


From   [email protected]
To   [email protected]
Subject   Re: st: Adding -nocons- to -mlbeta-
Date   Tue, 24 May 2005 15:26:49 -0500

clive,

Change the -ml model- statement to:

ml model lf mlbeta_ll (`lhs'=`rhs', `nocons')  (`dispersion') `if' 
`in', `robust' `svy' 


Example:

. sysuse auto, clear
(1978 Automobile Data)

. qui sum mpg

. gen m2 = mpg/(r(max)+1)

. mlbeta m2 trunk gear, nocons

                                                  Number of obs   
=         74
                                                  Wald chi2(2)    
=      44.06
Log likelihood =  54.205681                       Prob > chi2     
=     0.0000

-----------------------------------------------------------------------
-------
          m2 |      Coef.   Std. Err.      z    P>|z|     [95% Conf. 
Interval]
-------------+---------------------------------------------------------
-------
eq1          |
       trunk |  -.0662481   .0104036    -6.37   0.000    -.0866388   -
.0458574
  gear_ratio |   .3262698   .0493823     6.61   
0.000     .2294823    .4230573
-------------+---------------------------------------------------------
-------
eq2          |
       _cons |    2.81053   .1598448    17.58   0.000      2.49724     
3.12382
-----------------------------------------------------------------------
-------

Mean squared error:.01030075



Scott

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