extendSimpleModel: Extend Simple Model

Description Usage Arguments Value

Description

This function takes any model which is designed to run on a simple time series (i.e. at the local level) and applies it to each country in turn, thus making it a global model.

Usage

1
extendSimpleModel(data, model, imputationParameters)

Arguments

data

The data.table object containing the data.

model

The model to be applied to each individual time series. Typically, this will be a function such as one from allDefaultModels().

imputationParameters

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

Value

Returns a vector of the estimated/imputed values. If a value existed in the original data, then an NA is returned in that location.


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