Statalist


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

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


From   "Kieran McCaul" <[email protected]>
To   <[email protected]>
Subject   st: RE: -joinby- doesn't recognize -using- dataset
Date   Mon, 26 Oct 2009 15:17:02 +0800

....

-joinby- requires you to specify the -using- dataset.

In your sample code you have: joinby x, using a.dta

______________________________________________
Kieran McCaul MPH PhD
WA Centre for Health & Ageing (M573)
University of Western Australia
Level 6, Ainslie House
48 Murray St
Perth 6000
Phone: (08) 9224-2701
Fax: (08) 9224 8009
email: [email protected]
http://myprofile.cos.com/mccaul 
http://www.researcherid.com/rid/B-8751-2008
______________________________________________
If you live to be one hundred, you've got it made.
Very few people die past that age - George Burns


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Michael
McCulloch
Sent: Monday, 26 October 2009 2:29 PM
To: Statalist Statalist
Subject: st: -joinby- doesn't recognize -using- dataset

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/



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