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]
Re: st: Arrow diagram connecting before and after categories
From
David Hoaglin <[email protected]>
To
[email protected]
Subject
Re: st: Arrow diagram connecting before and after categories
Date
Fri, 10 Aug 2012 22:22:54 -0400
Mollie,
If the diagram looks messy (or even if it doesn't), it may be helpful
to produce a table that cross-classifies the deaths by the BEFORE
cause and the AFTER cause.
David Hoaglin
On Thu, Aug 9, 2012 at 6:32 PM, Mollie Hogan <[email protected]> wrote:
> Many thanks, Nick and David, for your replies.
>
> Nick, your suggestions were spot on. I have gotten the following to do
> what I need:
>
> 1. Draw the connecting lines using -twoway pcspike-
> 2. Insert the labels by overlaying two -scatter- plots (one for the
> before causes, one for the after causes)
>
> For anyone else looking to accomplish something similar, I highly
> recommend the Cox article mentioned in the first reply, as it has
> detailed code that will help you in your formatting quest!: Cox, N.J.
> 2009. Paired, parallel, or profile plots for changes, correlations,
> and other comparisons. Stata Journal 9(4): 621-639.
>
> I apologise for letting a few days pass before following up; it took
> my library a little while to get that Stata Journal article via
> interlibrary loan.
*
* 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/