Statalist The Stata Listserver

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

st: RE: Graph tsline(or line) with missing value

From   "Scott Merryman" <[email protected]>
To   <[email protected]>
Subject   st: RE: Graph tsline(or line) with missing value
Date   Thu, 30 Nov 2006 07:58:20 -0600

You can use two -tsline- statements with the appropriate if conditions.  For

webuse ibm,clear
drop if date > d(01feb2003) & date < d(01may2003)
tsline ibm
tsline ibm if date < d(01feb2003) || tsline ibm if date > d(01may2003)


> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Jia Xiangping
> Sent: Thursday, November 30, 2006 7:38 AM
> To: statalist
> Subject: st: Graph tsline(or line) with missing value
> Dear Stata users,
> I am graphing a time-series data, in which some years are missing. Is
> that possible for me to graph the line with the missing left blank,
> instead of connecting bluntly.
> For example, while the data in 1950s are available, 1960 are missing.
> By default, the data are connected and there is a sudden
> increase/decrease in trend.

*   For searches and help try:

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