Learn R Programming

robCompositions (version 2.0.0)

impAll: Replacement of rounded zeros and missing values.

Description

Parametric replacement of rounded zeros and missing values for compositional data using classical and robust methods based on ilr-transformations with special choice of balances. Values under detection limit should be saved with the negative value of the detection limit (per variable). Missing values should be coded as NA.

Usage

impAll(x)

Arguments

x
data frame

Value

The imputed data set.

Details

This is a wrapper function that calls impRZilr() for the replacement of zeros and impCoda for the imputation of missing values sequentially. The detection limit is automatically derived form negative numbers in the data set.

References

Hron, K. and Templ, M. and Filzmoser, P. (2010) Imputation of missing values for compositional data using classical and robust methods, Computational Statistics and Data Analysis, vol 54 (12), pages 3095-3107.

Martin-Fernandez, J.A. and Hron, K. and Templ, M. and Filzmoser, P. and Palarea-Albaladejo, J. (2012) Model-based replacement of rounded zeros in compositional data: Classical and robust approaches, Computational Statistics, 56 (2012), S. 2688 - 2704.

See Also

impCoda, impRZilr

Examples

Run this code

## see the compositionsGUI

Run the code above in your browser using DataLab