Malaria Cases

Source Notebook

WHO's estimated number of malaria cases by country in each year

Details

These are estimated case counts, which are different than confirmed case counts.
The data contains a few values for each country and year:
"FactValueNumeric"numeric estimate of the case count
"FactValueNumericHigh"upper limit on the estimation interval
"FactValueNumericLow"lower limit on the estimation interval
"FactValueNumeric"a string containing all the values above
Available content elements include:
"Dataset" (default)full Dataset where each row represents a single year for a country
"ByCountry"Dataset grouped by country
"ByYear"Dataset grouped by year
"TimeSeries"TimeSeries objects for each country

Examples

Basic Examples (1) 

Retrieve the full dataset:

In[1]:=
ResourceData[\!\(\*
TagBox["\"\<Malaria Cases\>\"",
#& ,
BoxID -> "ResourceTag-Malaria Cases-Input",
AutoDelete->True]\)]
Out[1]=

Scope & Additional Elements (2) 

Retrieve the data split by country and return values for a random country:

In[2]:=
RandomChoice[ResourceData[\!\(\*
TagBox["\"\<Malaria Cases\>\"",
#& ,
BoxID -> "ResourceTag-Malaria Cases-Input",
AutoDelete->True]\), "ByCountry"]]
Out[2]=

Retrieve a data from a specific year:

In[3]:=
ResourceData[\!\(\*
TagBox["\"\<Malaria Cases\>\"",
#& ,
BoxID -> "ResourceTag-Malaria Cases-Input",
AutoDelete->True]\), "ByYear"][
 Key[DateObject[{2017}, "Year", "Gregorian", -5.`]]]
Out[3]=

Visualizations (3) 

Plot the yearly values for ten countries on a timeline:

In[4]:=
DateListPlot[RandomSample[ResourceData[\!\(\*
TagBox["\"\<Malaria Cases\>\"",
#& ,
BoxID -> "ResourceTag-Malaria Cases-Input",
AutoDelete->True]\), "TimeSeries"], 10], PlotRange -> All]
Out[4]=

Create a map showing the latest number of cases for each country in the dataset:

In[5]:=
GeoRegionValuePlot[ResourceData[\!\(\*
TagBox["\"\<Malaria Cases\>\"",
#& ,
BoxID -> "ResourceTag-Malaria Cases-Input",
AutoDelete->True]\), "ByCountry"][All, First, "FactValueNumeric"]]
Out[5]=

Scale the cases by the population of each country:

In[6]:=
percapita = ResourceData[\!\(\*
TagBox["\"\<Malaria Cases\>\"",
#& ,
BoxID -> "ResourceTag-Malaria Cases-Input",
AutoDelete->True]\), "ByCountry"][All, First, "FactValueNumeric"][
   Association@
     KeyValueMap[N@(#1 -> #2/EntityValue[#1, "Population"]) &, #] &];
In[7]:=
GeoRegionValuePlot[percapita]
Out[7]=

Analysis (2) 

Plot global case estimations on a timeline:

In[8]:=
DateListPlot@ResourceData[\!\(\*
TagBox["\"\<Malaria Cases\>\"",
#& ,
BoxID -> "ResourceTag-Malaria Cases-Input",
AutoDelete->True]\), "ByYear"][All, Total, "FactValueNumeric"]
Out[8]=

Find the twenty largest single years reported by any country using the "FactValueNumeric" value:

In[9]:=
ResourceData[\!\(\*
TagBox["\"\<Malaria Cases\>\"",
#& ,
BoxID -> "ResourceTag-Malaria Cases-Input",
AutoDelete->True]\)][TakeLargestBy["FactValueNumeric", 20]]
Out[9]=

When there is uncertainty, find the single years with the highest possible number of cases:

In[10]:=
ResourceData[\!\(\*
TagBox["\"\<Malaria Cases\>\"",
#& ,
BoxID -> "ResourceTag-Malaria Cases-Input",
AutoDelete->True]\)][Select[NumericQ[#FactValueNumericHigh] &]][
 TakeLargestBy["FactValueNumericHigh", 20]]
Out[10]=

Wolfram Research, "Malaria Cases" from the Wolfram Data Repository (2022)  

License Information

https://www.who.int/about/policies/terms-of-use

Data Resource History

Source Metadata

See Also

Data Downloads

Publisher Information