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

RE: st: Naming equations when using the ml command


From   "Jun Xu" <mystata@hotmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   RE: st: Naming equations when using the ml command
Date   Wed, 30 Mar 2005 16:15:08 -0600

Miss the second part. For value lables, you can try Scott Long's _pecats and get returns from it. It really depends. If you have fixed number of equation, then you can set up loops like

_pecats yourvar
loc catvals = "r(catvals)"
loc j = r(numcats)
forval i = 1/`j' {
loc val`i': word `i' of `catvals'
}

Then you can grab those val`i' for your equation names. If you don't have fixed number of equations, then you need to again set up some kind of loops. Not sure if this is what you meant to accomplish.

Jun


From: "Jun Xu" <mystata@hotmail.com>
Reply-To: statalist@hsphsun2.harvard.edu
To: statalist@hsphsun2.harvard.edu
Subject: RE: st: Naming equations when using the ml command
Date: Wed, 30 Mar 2005 15:33:47 -0600

ml model lf your_ll (eqname: depvar = indepvarlist)

replace eqname with the equation names you want.

best,

Jun Xu
Department of Sociology
Indiana University


From: "Richard. Williams" <Richard.A.Williams.5@nd.edu>
Reply-To: statalist@hsphsun2.harvard.edu
To: statalist@hsphsun2.harvard.edu
Subject: st: Naming equations when using the ml command
Date: Wed, 30 Mar 2005 11:07:47 -0500

I am writing a program that uses the -ml- command. When the results are printed, the equations are named eq1, eq2, eq3, etc. Is there a simple way for me to change those names? I'd like my program to behave like mlogit, where the value labels (if any) become the equation names. Thanks.



-------------------------------------------
Richard Williams, Associate Professor
OFFICE: (574)631-6668, (574)631-6463
FAX: (574)288-4373
HOME: (574)289-5227
EMAIL: Richard.A.Williams.5@ND.Edu
WWW (personal): http://www.nd.edu/~rwilliam
WWW (department): http://www.nd.edu/~soc

*
* 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/
_________________________________________________________________
Donít just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/

*
* 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/
_________________________________________________________________
Donít just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/

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