Description Usage Arguments Details Value Author(s) Examples
Geometric average of a matrix by rows or columns
1 | UN_average_geometric(previous.name = "")
|
previous.name |
name of the default name in the menu |
Allcalculation made on the whole matrix
Row wisecalculation made by rows
Column wisecalculation made by columns
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.
The output is saved in the variable var.mean
All |
single numeric value |
Row wise |
numeric vector |
Column wise |
numeric vector |
Riccardo Leardi and Gianmarco Polotti with contributions from Giorgio Marubini.Gruppo di Chemiometria (Divisione di Chimica Analitica della Societa' Chimica Italiana)
1 2 | A<-matrix(1:20,5,4)
UN_average_geometric('A')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.