Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: wbopendata


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: wbopendata
Date   Thu, 29 Mar 2012 10:19:12 +0100

The explanation of -wbopendata- was embedded in the code given. Sorry
that I didn't notice that first time round.

On Thu, Mar 29, 2012 at 10:14 AM, Nick Cox <njcoxstata@gmail.com> wrote:
> -sysuse dir- is for listing example Stata datasets installed with
> Stata, i.e. those that come with the purchased product. -world-d-
> doesn't qualify.
>
> -wbopendata- and -spmap- are user-written from SSC, as you are asked
> to explain.
>
> Nick
>
> 2012/3/29 Dr. Chuntao Li <chtl@znufe.edu.cn>:
>
>>   I am new to the package wbopendata, can someone tell me why i cannot execuate the following code?
>>
>>    sysuse world-d, clear
>>
>>  i was trying to run the following example program, which can be find if you type "help wbopendata"
>>
>>
>>        tempfile tmp
>>        wbopendata, language(en - English) indicator(it.cel.sets.p2) long clear latest
>>        sort countrycode
>>        save `tmp', replace
>>        sysuse world-d, clear
>>        merge countrycode using `tmp'
>>        sum year
>>        local avg = string(`r(mean)',"%16.1f")
>>        spmap  it_cel_sets_p2 using "world-c.dta", id(_id)                                  ///
>>                clnumber(20) fcolor(Reds2) ocolor(none ..)                                  ///
>>                title("Mobile cellular subscriptions (per 100 people)", size(*1.2))         ///
>>                legstyle(3) legend(ring(1) position(3))                                     ///
>>                note("Source: World Development Indicators (latest available year: `avg') in ///
>>                Azevedo, J.P. (2011) wbopendata: Stata module to " "access World Bank databases, ///
>>                Statistical Software Components S457234 Boston College Department of Economics.", size(*.7))
>>
>>
>> by execuate "sysuse dir", we find the following system data files:
>>
>>  auto.dta        cancer.dta      educ99gdp.dta   network1a.dta   sandstone.dta   tsline2.dta     xtline1.dta
>>  autornd.dta     census.dta      gnp96.dta       nlsw88.dta      sp500.dta       uslifeexp.dta
>>  bplong.dta      citytemp.dta    lifeexp.dta     nlswide1.dta    surface.dta     uslifeexp2.dta
>>  bpwide.dta      citytemp4.dta   network1.dta    pop2000.dta     tsline1.dta     voter.dta
>>
>> There is no such a file named "world-d.dta", but why?

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