Database files in IFs: Difference between revisions

From Pardee Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 28: Line 28:
The Datadict.mdb file serves as a reference for all series in the IFsHistSeries.mdb file. Every series in IFsHistSeries has an entry in DataDict containing all of the metadata on that series. The Data Dictionary lists each variable, the groups to which it belongs (e.g., Agriculture, Economics) its subgroup (e.g., Trade, Consumption), and additional identifying information. This information includes whether or not the data is a series (Yes/No), CoVaTrA, Cohort. It also includes a definition of the variable, and a column for an extended definition provided by the data source. The data dictionary has columns identifying the years for which a series has data, the source of the data, the original source (e.g. a series may have been pulled from the FAO website, but may have originated as World Bank research.) and the source name of the series, and an identifier for which team member last updated the series and when. It also includes instructions on how data should be aggregated or disaggregated for provincial models (e.g., by population or GDP distribution). Some additional information is supplied that is used by the model such as whether a datum of 0 should be treated as a null or as a zero, if a series is used in the preprocessor, if it is compared to other forecasts, the number of decimal places to read, and any formulas applied to the data.
The Datadict.mdb file serves as a reference for all series in the IFsHistSeries.mdb file. Every series in IFsHistSeries has an entry in DataDict containing all of the metadata on that series. The Data Dictionary lists each variable, the groups to which it belongs (e.g., Agriculture, Economics) its subgroup (e.g., Trade, Consumption), and additional identifying information. This information includes whether or not the data is a series (Yes/No), CoVaTrA, Cohort. It also includes a definition of the variable, and a column for an extended definition provided by the data source. The data dictionary has columns identifying the years for which a series has data, the source of the data, the original source (e.g. a series may have been pulled from the FAO website, but may have originated as World Bank research.) and the source name of the series, and an identifier for which team member last updated the series and when. It also includes instructions on how data should be aggregated or disaggregated for provincial models (e.g., by population or GDP distribution). Some additional information is supplied that is used by the model such as whether a datum of 0 should be treated as a null or as a zero, if a series is used in the preprocessor, if it is compared to other forecasts, the number of decimal places to read, and any formulas applied to the data.


<parsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black">
=== This page contains the following errors: ===
<div style="font-family:monospace;font-size:12px">error on line 1 at column 557: attributes construct error </div>
=== Below is a rendering of the page up to the first error. ===
</parsererror>
= <span style="font-size:x-large;">DataDict Inputs</span> =
= <span style="font-size:x-large;">DataDict Inputs</span> =


<span style="font-size:small;">The following describes each column in the DataDict and provides an example of each.</span>
<span style="font-size:small;">The following describes each column in the DataDict and provides an example of each.</span>
 
<span style="font-size:small;"></span>
'''Variable''': Name of variable you assign (Automatically generated from import)
{| border="0" cellpadding="0" cellspacing="0" width="1609"
 
|- height="21"
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ex.&nbsp;WSSJMPSanitationRural%Improved
| height="21" width="197" | Column&nbsp;
 
| width="945" | Description
'''Table:&nbsp;'''Automatically generated&nbsp;
| width="467" | Example
 
|- height="21"
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ex.&nbsp;SeriesWSSJMPSanitationRural%Improved
| height="21" | Variable Name
 
|}
'''Group: '''Group or category you assign to the variable (Automatically generated from import)
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ex. Infrastructure, Water, Health
 
'''Subgroup:&nbsp;'''Subroup you assign to the variable&nbsp;(Automatically generated from import)
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ex.&nbsp;Sanitation
 
'''Series:&nbsp;'''Yes
 
'''CoVaTra:&nbsp;'''No
 
'''Cohort:&nbsp;'''No
 
'''Definition: '''Specific definition of the variable that will be displayed in IFs
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ex.&nbsp;Proportion of Rural population served with Improved Sanitation (%)
 
'''Extended Source Defenition:&nbsp;'''Additional information about the variable if needed
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ex.&nbsp;Likely to ensure hygenic separation of human excreta from human contact. They include: 1) Flush/pour flush to (piped sewer system septic tank or pit latrine) 2) Ventilated improved pit (VIP) latrine&nbsp;
 
'''Units:&nbsp;'''Specification of the units the variable is measured by
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ex.&nbsp;Percent
 
'''Currency:&nbsp;'''Leave blank
 
'''Years:&nbsp;'''Years that data set covers (Automatically generated but make sure its accurate)
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ex.&nbsp;2000-2015
 
'''Source:&nbsp;'''Website name the data source is from
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ex.&nbsp;WSS JMP WHO/UNICEF JMP OR World Bank
 
'''Original Source: '''URL of data source
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ex.&nbsp;[https://washdata.org https://washdata.org]
 
'''Notes:&nbsp;'''Any additional notes and the initials of the person that pulled the data
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ex. Created individual index;EB
 
'''Last IFs Update:&nbsp;'''Automatically generated
 
'''Aggregation:&nbsp;'''Tells the model how to aggregate country values to groups within the model.&nbsp;Will automatically generate if classified during import.
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ex.&nbsp;POP
 
'''Disaggregation:&nbsp;'''Tells the model how to disaggregate country values to subnational bodies when the model is broken out into its subnational form (Automatically generated).
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ex. GDP
 
'''Treat Nulls as 0's:&nbsp;'''If checked, will treat nulls in the data set as zeroes
 
'''Proprietary:&nbsp;'''Leave blank
 
'''Name in Source:&nbsp;'''Information on how the data was pulled so someone can replicate exactly
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ex.&nbsp;Sum of Rural Latrines, Septic Tanks, Sewer Connections
 
'''Used in Preprocessor:&nbsp;'''If checked, data set is used in preprocessor
 
'''Used in Preprocessor File Name:&nbsp;'''File name that is used in preprocessor. If Used in Preprocessor is checked, this should be filled
 
'''Compare Other Forcasts:&nbsp;'''Leave blank
 
'''Code in Source:&nbsp;'''Only used in batch pulls
 
'''Decimal Places:'''&nbsp;Decimal places for data in data series
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ex. 4
 
'''Country Concordance:&nbsp;'''Country concordance used to import data into IFs. (Will automatically generate)
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ex. IFs Country
 
'''Formula:&nbsp;'''Option during import to manipulate the data
 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ex. *100

Revision as of 22:23, 6 November 2017

IFs Historical Database Files

IFs uses Microsoft Access files to store data and data dictionary (meta-data). All data files are in the “C:/My Documents/Users/Public/IFs/Data” folder. Data and related files are listed below:

  • IFsHistSeries.Mdb is the largest and most frequently used IFs data file containing more than three thousand data tables each containing 186 rows (one row of data per country) and several columns (one column per year). The figure below shows data from an IFsHistSeries table

RTENOTITLE

  • DataDict.Mdb is the data dictionary file with a table containing one row of meta-data (e.g., definition, unit, source, last date of update) for each of the data tables in IFsHistSeries.Mdb

Screenshot from DataDict

  • IFs.Mdb is the Microsoft Access file that contains several IFs data tables. One of these table - "Country Translation" - is requied for automated IFs data import/update. Country Translation table maintains (and updates) a concordance list between country names used by IFs and data sources
  • IFsWVSCohort.Mdb is the file that contains data from waves of World Value Survey, a global survey of cultural values conducted by University of Michigan.
  • IFsDataImport.Mdb, is an MS Access database that holds the data series imported using IFs software's automated single series 'import' interface.
  • IFsDataImportBatch.Mdb, is the Access database that houses the data series imported using IFs software's automated batch import interface.

IFs Data Table Naming Convention

Names of all data tables in IFsHistSeries.MDB start with the prefix “Series”. The “Series” prefix is followed by an issue area prefix, e.g., “Ag” for agriculture or “Ed” for education. This second tier of prefix might be followed by additional prefixes (e.g., "EdSec" for secondary education) or might be absent altogether (e.g., in some of the earlier imports).

Data series names might also contain a suffix, the usual purpose of which is to differentiate among the sources for the same/similar series.

No spaces or symbols (other than %) are allowed in series name.

IFs DataDict Columns

The Datadict.mdb file serves as a reference for all series in the IFsHistSeries.mdb file. Every series in IFsHistSeries has an entry in DataDict containing all of the metadata on that series. The Data Dictionary lists each variable, the groups to which it belongs (e.g., Agriculture, Economics) its subgroup (e.g., Trade, Consumption), and additional identifying information. This information includes whether or not the data is a series (Yes/No), CoVaTrA, Cohort. It also includes a definition of the variable, and a column for an extended definition provided by the data source. The data dictionary has columns identifying the years for which a series has data, the source of the data, the original source (e.g. a series may have been pulled from the FAO website, but may have originated as World Bank research.) and the source name of the series, and an identifier for which team member last updated the series and when. It also includes instructions on how data should be aggregated or disaggregated for provincial models (e.g., by population or GDP distribution). Some additional information is supplied that is used by the model such as whether a datum of 0 should be treated as a null or as a zero, if a series is used in the preprocessor, if it is compared to other forecasts, the number of decimal places to read, and any formulas applied to the data.

<parsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black">

This page contains the following errors:

error on line 1 at column 557: attributes construct error

Below is a rendering of the page up to the first error.

</parsererror>

DataDict Inputs

The following describes each column in the DataDict and provides an example of each.

Column  Description Example
Variable Name