Statalist


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

st: -joinby- doesn't recognize -using- dataset


From   Michael McCulloch <mcculloch@pinestreetfoundation.org>
To   Statalist Statalist <statalist@hsphsun2.harvard.edu>
Subject   st: -joinby- doesn't recognize -using- dataset
Date   Sun, 25 Oct 2009 22:28:56 -0700

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
mm@pinestreetfoundation.org







*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index