getCovariates: Get Covariates

Description Usage Arguments Value

Description

This function pulls data from the World Bank datasets, such as GDP indicators and other such data. These kinds of variables can be useful for estimating production, loss, etc. and thus form a good set of covariate variables for imputation models.

Usage

1
getCovariates(data, imputationParameters)

Arguments

data

The data.table object where imputation is to be performed. This object is used to determine which countries and times should be queried from the World Bank dataset.

imputationParameters

A list of the parameters for the imputation algorithms. See defaultImputationParameters() for a starting point.

Value

A data.table containing columns geographicAreaM49 and timePointYears corresponding to the values in data as well as columns containing World Bank data, such as GPD, paved road precipitation.


SWS-Methodology/faoswsImputation documentation built on May 9, 2019, 11:48 a.m.