Hello Statalist folks,
I created the sample code below which successfully runs a -joinby-
operation on a test dataset.
However, when I invoke the same -joinby- command:
. joinby group
using my live datasets, I am met with error message:
. joinby group
using required
r(100);
I have confirmed that directories and filenames are correctly specified.
clear
set obs 3
gen a = _n
gen group="x"
list
save a, replace
clear
set obs 3
gen b="a"
replace b="b" in 2
replace b="c" in 3
gen group="x"
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/