Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: spmap ... Variable _ID specified in option id()... r(459)


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: spmap ... Variable _ID specified in option id()... r(459)
Date   Mon, 4 Nov 2013 21:23:35 +0000

I'm with Sergiy in being puzzled on what the question is, but one
answer has to be -duplicates- to do more checking than -isid- does.
Nick
[email protected]


On 4 November 2013 21:20, Sergiy Radyakin <[email protected]> wrote:
> Well, yes, if the variable that you are specifying as ID is not unique
> among the observations, you should get this message. What is the
> question?
> Best, Sergiy
>
> PS: From the -spmap- code:
>    /* Check option id() */
>     preserve
>     marksample TOUSE, novarlist
>     markout `TOUSE' `id'
>     qui keep if `TOUSE'
>     capture isid `id'
>
>
>
>
>
>
> On Mon, Nov 4, 2013 at 4:10 PM, [email protected] <[email protected]> wrote:
>> When I simply want to display the map and use the command
>>
>> spmap using worldcoor, id(_ID)
>>
>> I sometimes get error message:
>>
>> Variable _ID specified in option id() does not uniquely identify the
>> observations
>> r(459);
>> *
>> *   For searches and help try:
>> *   http://www.stata.com/help.cgi?search
>> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index