computeProcessedProduction: Compute Processed Production

Description Usage Arguments Value

Description

This function estimates the required "production" values for processed products. Of course, processed products don't really have true "production" values, but this rather represents how much of the current commodity is available because of processing of a parent commodity. The estimation of the required amount of production is done by examining the imbalance between imports, exports, and food (i.e. production = exports + food - imports, or 0 if imports > exports + food). This value is then standardized to provide an estimated distribution for the parent product.

Usage

1
computeProcessedProduction(data, tree, standParams)

Arguments

data

The data.table containing the full dataset for standardization.

tree

The commodity tree which provides the edge structure.

standParams

The parameters for standardization. These parameters provide information about the columns of data and tree, specifying (for example) which columns should be standardized, which columns represent parents/children, etc.

Value

Nothing is returned, but the passed data.table "data" is updated with estimated distributions for the production for all elements which did not previously have distributions.


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