Means

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Purpose

Calculates the arithmetic, harmonic, and geometric mean of a vector.

Synopsis

vals = means(x)

Inputs

  • x = matrix (column vector) in which the sample data is stored.

Outputs

The return value is a structure with fields:

  • amean = arithmetic mean.
  • na = number of obs used in amean calculation.
  • hmean = harmonic mean.
  • nh = number of obs used in hmean calculation.
  • gmean = geometric mean.
  • ng = number of obs used in gmean calculation.

Examples

mns = means(x);

See Also

summary