Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: RE: How to show formatted date variable in graph


From   Nick Cox <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: How to show formatted date variable in graph
Date   Mon, 17 Oct 2011 19:13:20 +0100

I'm surprised at this. Did you -tsset- your data? 

Graphs: A format such as you specify comes automatically in 

webuse turksales 
tsline sales
line sales t 
line sales t, xla(120(8)160) 

if you want something different, specify a -format()- suboption. 

line sales t, xla(120(8)160, format("%tqq_Cy"))

Tables: Many tables don't even promise to echo the format of the variable being tabulated. More specific details are needed, I think. 

Nick 
[email protected] 

Paul O'Brien

i have a variable for the quarter of the year in which a clinic visit occurred which i have formatted thus:

quarter 151 when formatted appears as 1997q4.

when i create a table or graph of visits the number 151 appears rather than 1997q4.

how to i get 1997q4 into the table and graph.


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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index