[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
"Martin Weiss" <martin.weiss1@gmx.de> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: AW: simple "graph twoway, b()" question |

Date |
Wed, 25 Feb 2009 17:47:49 +0100 |

<> Try ************* sysuse uslifeexp, clear set seed 1001 g x =runiform()>0.5 line le year, by(x) line le year, xsc(r(1850 2006)) line le year, xsc(r(1850 2006)) by(x) line le year, by(x, xsc(r(1850 2006))) ************* and note the different behavior. HTH Martin -----Ursprüngliche Nachricht----- Von: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Markus Pannenberg Gesendet: Mittwoch, 25. Februar 2009 17:36 An: statalist@hsphsun2.harvard.edu Betreff: st: simple "graph twoway, b()" question Hi all, I have a simple "graph twoway, by()" question: When I type: (1) twoway (line gdp year), by(country), Stata creates a graph with plots for all countries and a range for the x axis starting in 2000 though the minimum of the variable year is 2001! When I type: (2) twoway (line gdp year), xsc(r(2001 2006)), Stata creates a graph with a range for the x axis starting in 2001. However, when I combine (1) and (2), i.e. (3) twoway (line gdp year), by(country, xsc(r(2001 2006))) Stata tells me: "option xsc() not allowed" r(198)! Any suggestions? Thanks a lot! Best, Markus * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/ * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**References**:**st: simple "graph twoway, b()" question***From:*Markus Pannenberg <markus.pannenberg@googlemail.com>

- Prev by Date:
**st: double hurdle model with Tobit second stage estimation** - Next by Date:
**st: AW: Problem looping over spells for an individual** - Previous by thread:
**st: simple "graph twoway, b()" question** - Next by thread:
**st: AW: simple "graph twoway, b()" question** - Index(es):

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