Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: graphical representation of orthogonal pairings


From   Michael McCulloch <[email protected]>
To   Statalist Statalist <[email protected]>
Subject   st: graphical representation of orthogonal pairings
Date   Fri, 13 Nov 2009 13:07:27 -0800

Hello,
The following code creates a list of orthogonal pairings of two variables. My question is whether it's possible with Stata to create a graphical representation of these pairings, appearing in rows with a box drawn around each pair:
1a	1b	1c
2a	2b	2c
3a	3b	3c

**********
clear
set obs 3
gen a = _n
gen group=1
list
save a, replace
clear
set obs 3
gen b="a"
replace b="b" in 2
replace b="c" in 3
gen group=1
list
joinby group using a.dta
sort a b
list a b group
***********

Michael McCulloch
Pine Street Foundation
124 Pine Street
San Anselmo, CA 94960-2674
tel:	415-407-1357
fax: 	206-338-2391
[email protected]







*
*   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/



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