DataSets[Quandl] - Maple Programming Help

Home : Support : Online Help : Statistics and Data Analysis : DataSets Package : Quandl : DataSets/Quandl/Reference

DataSets[Quandl]

 Reference
 create a reference to Quandl data

 Calling Sequence Reference(id) DataSets:-Reference("Quandl", id)

Parameters

 id - string; Quandl identifier for the data set

Description

 • The Reference command creates a reference to a Quandl data set, and retrieves some metadata about the data available for this data set.
 • The two calling sequences are exactly equivalent: a call to Reference in the DataSets package interprets its first argument as the name of a data source, and if it is "Quandl", it calls DataSets[Quandl][Reference].
 • The reference object retrieves the data only when necessary, which is when it is implicitly or explicitly converted to another type.
 • Retrieved data is cached so that subsequent conversions will be faster.
 • Reference objects can be created without specifying the Quandl identifier with DataSets[Search] or DataSets[InsertSearchBox].
 • Quandl reference objects are compatible with any command in the TimeSeriesAnalysis package that makes use of TimeSeries objects.

Examples

 > $\mathrm{with}\left(\mathrm{DataSets}\right):$

We create a reference by identifier.

 > $\mathrm{ref}≔\mathrm{Reference}\left("Quandl","FRED/CANPOPL"\right)$
 ${\mathrm{ref}}{≔}\left[\begin{array}{c}{\mathrm{Data set}}\\ {\mathrm{Population in Canada \left(DISCONTINUED\right)}}\\ {\mathrm{Quandl FRED/CANPOPL}}\\ {\mathrm{up to 52 rows \left(annual\right), 1 column}}\\ {\mathrm{1960-01-01 - 2011-01-01}}\end{array}\right]$ (1)

This is equivalent to

 > $\mathrm{Quandl}:-\mathrm{Reference}\left("FRED/CANPOPL"\right)$
 $\left[\begin{array}{c}{\mathrm{Data set}}\\ {\mathrm{Population in Canada \left(DISCONTINUED\right)}}\\ {\mathrm{Quandl FRED/CANPOPL}}\\ {\mathrm{up to 52 rows \left(annual\right), 1 column}}\\ {\mathrm{1960-01-01 - 2011-01-01}}\end{array}\right]$ (2)
 > $\mathrm{GetIdentifier}\left(\mathrm{ref}\right)$
 ${"FRED/CANPOPL"}$ (3)
 > $\mathrm{convert}\left(\mathrm{ref},'\mathrm{Matrix}'\right)$
 $\left[\begin{array}{cc}{"1960-12-31"}& {17.91}\\ {"1961-12-31"}& {18.27}\\ {"1962-12-31"}& {18.61}\\ {"1963-12-31"}& {18.96}\\ {"1964-12-31"}& {19.33}\\ {"1965-12-31"}& {19.68}\\ {"1966-12-31"}& {20.05}\\ {"1967-12-31"}& {20.41}\\ {"1968-12-31"}& {20.73}\\ {"1969-12-31"}& {21.03}\\ {\mathrm{:}}& {"52 × 2 Matrix"}\end{array}\right]$ (4)
 > $\mathrm{with}\left(\mathrm{TimeSeriesAnalysis}\right):$
 > $\mathrm{TimeSeriesPlot}\left(\mathrm{ref}\right)$ > $\mathrm{esm}≔\mathrm{ExponentialSmoothingModel}\left(\mathrm{ref}\right)$
 ${\mathrm{esm}}{≔}{\mathrm{< an ETS\left(A,A,N\right) model >}}$ (5)
 > $\mathrm{fc}≔\mathrm{Forecast}\left(\mathrm{esm},20,\mathrm{output}=\mathrm{confidenceintervals}\left(95\right)\right)$
 ${\mathrm{fc}}{≔}\left[\begin{array}{c}{\mathrm{Time series}}\\ {\mathrm{VALUE \left(forecast - 2 percentile\right), VALUE \left(forecast - 50 percentile\right), VALUE \left(forecast - 98 percentile\right)}}\\ {\mathrm{20 rows of data:}}\\ {\mathrm{2012-12-30 - 2031-12-30}}\end{array}\right]$ (6)
 > $\mathrm{TimeSeriesPlot}\left(\mathrm{fc},\mathrm{ref}\right)$ > 

Compatibility

 • The DataSets[Quandl][Reference] command was introduced in Maple 2015.