doImputation: Impute missing values or outliers.

View source: R/doImputation.R

doImputationR Documentation

Impute missing values or outliers.

Description

Use a median unit value to impute missing quantities or outliers.

Usage

doImputation(tradedata = NA, uv.median = "uvm")

Arguments

tradedata

Trade data.

uv.median

Name of the median unit value variable.

Details

The median unit value is calculated in a specific-to-generic fashion: 1) by HS-reporter; 2) by HS8-reporter; by HS6-reporter; 3) by HS; 4) by FCL; 5) by flow. The first available of these options will be used (for HS, HS8 and HS6 only when there are at least 10 flows).

Value

tradedata with imputed values.


SWS-Methodology/faoswsTrade documentation built on Feb. 13, 2023, 1:04 a.m.