Hi, listers
I have three variables where variable A can be derived from each of the
two others (B & C). I now want to create a line-graph with the value of
variable A on the y-axis and the corresponding values of B and C on
xaxis 1 and 2 respectively.
In case this was as hard to understand as it was to explain, I'll
elaborate with an example:
clear
set obs 100
gen B = _n
gen C = B^.5
gen A = B
line A B
I want to include a second x-axis which shows the corresponding values
of C.
Can this be done somehow?
My dataset only contains 16 points, so suggestions for ugly hacks are
also welcome :)
-Steinar
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/