I am creating a line graph with the variable ratio. I would like my graph to show no line when data for that month is missing.
twoway (line ratio date if treated == 1) (line ratio date if treated == 0), title("Test")
graph export test.emf, replace
date is a Stata date with a month format and 1 for each day:
date
1/1/2012 - Jan12
2/1/2012 - Feb12
3/1/2012 - Mar12

My data-set has missing values for certain months, but from the graph it looks like continuous data. Is it possible to show missing months as blank (no line)?
Thank you for your assistance.
twoway (line ratio date if treated == 1) (line ratio date if treated == 0), title("Test")
graph export test.emf, replace
date is a Stata date with a month format and 1 for each day:
date
1/1/2012 - Jan12
2/1/2012 - Feb12
3/1/2012 - Mar12
My data-set has missing values for certain months, but from the graph it looks like continuous data. Is it possible to show missing months as blank (no line)?
Thank you for your assistance.
Comment