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

From |
Enzo Coviello <Enzo.Coviello@tin.it> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: stata10's behaviour? |

Date |
Thu, 25 Jul 2002 13:32:03 +0200 |

Many thanks prof Cox, for your clear explanation. In your mail there is a parenthesis I do not understand Read in the auto data (Enzo clearly has a version

with Italian labels, using Stata 10's behaviour of translating automatically to the language you prefer):

Labels was simply changed in my auto.dta. So I wonder what is "Stata 10"? Can we translate output in some language other than English? Enzo

. u auto . gen gpm = 1 / mpg . reg gpm weight We should want to see a scatter plot and regression line: . predict predmpg . graph gpm predmpg weight, sy(oi) c(.l) sort All we want so far as the line is concerned (usually) are invisible point symbols connected up. As Enzo reports, -graph- has a rule: no variable label (or variable name when no label exists) is shown corresponding to a variable shown with -sy(i)-. Therefore, "gpm" alone is shown by default as the -l1title()-, which I guess is what most people would think natural for this kind of graph. -predmpg- as far as the graph is concerned is a variable constructed for a purpose and not data in the strict sense. Now consider what happens when we ask for . graph gpm predmpg weight, sy(o.) c(.l) sort i.e. a point symbol, not invisible symbols. -graph- now faces a conflict: two variable names both have a claim to be shown in the -l1title()-. Stata gives up on this: it declines to write the two on top of each other; it might try to guess which variable name you really want there, but Stata here prefers to pass the buck back to you: "If you want some text in -l1title()-, you just have to tell me what you want." That is, arguing backwards, this rule is a feature for those situations in which one variable is, for graphical purposes, one which you wish to keep quiet. This point leads naturally to a suggestion for Enzo's problem: . graph length weight, s(.) c(l) sort The point symbol will, for all practical purposes, be invisible, but the variable label will reappear. Nick n.j.cox@durham.ac.uk * * 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/

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

**Follow-Ups**:**st: RE: stata10's behaviour?***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**References**:**st: graph bug?***From:*Enzo Coviello <Enzo.Coviello@tin.it>

**st: RE: graph bug?***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

- Prev by Date:
**st: wntestb** - Next by Date:
**st: RE: stata10's behaviour?** - Previous by thread:
**st: RE: graph bug?** - Next by thread:
**st: RE: stata10's behaviour?** - Index(es):

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