[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
Richard Williams <Richard.A.Williams.5@nd.edu> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
RE: st: Naming equations when using the ml command |

Date |
Thu, 31 Mar 2005 12:25:47 -0500 |

At 04:15 PM 3/30/2005 -0600, Jun Xu wrote:

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 likeIncidentally, I am finding that this may be more trouble than it is worth. mlogit seems to be able to handle just about any value label and using it as the equation name. But, I am finding that I have trouble with value labels that contain spaces or commas, and value labels that get used more than once, and probably various other quirks I haven't tested yet. Just leaving the equation names as eq1, eq2, etc. is starting to look more attractive.

_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.

*

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

**References**:**RE: st: Naming equations when using the ml command***From:*"Jun Xu" <mystata@hotmail.com>

**RE: st: Naming equations when using the ml command***From:*"Jun Xu" <mystata@hotmail.com>

- Prev by Date:
**Re: st: Inverse hyperbolic sine function** - Next by Date:
**st: RE: about sums** - Previous by thread:
**RE: st: Naming equations when using the ml command** - Next by thread:
**RE: st: Naming equations when using the ml command** - Index(es):

© Copyright 1996–2014 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |