Statalist


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

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


From   Michael McCulloch <mm@pinest.org>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: -joinby- doesn't recognize -using- dataset
Date   Mon, 26 Oct 2009 07:39:04 -0700

Kieran, "x" was the group variable, and "a.dta" is the -using- dataset.
But problem solved, you'll see my own follow-up later in which I  
discovered a do-file editor problem.
Michael



On Oct 26, 2009, at 12:17 AM, Kieran McCaul wrote:

> ....
>
> -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: Kieran.McCaul@uwa.edu.au
> 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: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] 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
> 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/
>
>
>
> *
> *   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/



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