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

st: rank ordered twoway graph

From   Shehzad Ali <>
Subject   st: rank ordered twoway graph
Date   11 Jun 2008 05:25:12 +0100

Hi listers,

I want to create a twoway graph (like spike or dropline) where the x-axis is a rank variable (based on say income) and y-axis is the other variable of interest (say health_pay). A simple command - twoway spike health_pay income - spread the x-axis over the whole range of income but I am interested in income rank and not income itself.

I know one way to do it is to generate income rank variable using - glcurve - and then plotting the rank_var against health_pay but I was wondering if there was a direct method.

Any help would be appreciated.

Thank you,

* For searches and help try:

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