UN_average_geometric: Geometric mean average of a matrix

Description Usage Arguments Details Value Author(s) Examples

Description

Geometric average of a matrix by rows or columns

Usage

1
UN_average_geometric(previous.name = "")

Arguments

previous.name

name of the default name in the menu

Details

UNaveragemenu.png

UNgeometricaverageformula.png The Geometric Mean (x_gmean) can be used for right skewed distributions (e.g. lognormal distributions). There is no built-in function in the basic packages of R for the geometric mean, but a function has been written in the menus to allow the user to compute automatically this descriptor. The geometric mean is rarely applied and the User must be careful not to input in this function negative numbers (x_gmean requires xi>0 for all i). In addition the function must be used with caution, knowing that overflows are easily generated by product series.

Value

The output is saved in the variable var.mean

All

single numeric value

Row wise

numeric vector

Column wise

numeric vector

Author(s)

Riccardo Leardi and Gianmarco Polotti with contributions from Giorgio Marubini.Gruppo di Chemiometria (Divisione di Chimica Analitica della Societa' Chimica Italiana)

Examples

1
2
A<-matrix(1:20,5,4)
UN_average_geometric('A')

polgia0/Chemometricmenus documentation built on May 28, 2019, 12:03 p.m.