Means: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Jeremy
(Importing text file)
 
imported>Jeremy
(Importing text file)
Line 3: Line 3:
===Synopsis===
===Synopsis===
:vals = means(x)
:vals = means(x)
INPUTS:
====INPUTS====
* x = matrix (column vector) in which the sample data is stored.
* '''x''' = matrix (column vector) in which the sample data is stored.
OUTPUTS:
====OUTPUTS====
The return value is a structure with fields:
The return value is a structure with fields:
* amean =  arithmetic mean.
* '''amean''' =  arithmetic mean.
* na = number of obs used in amean calculation.
* '''na''' = number of obs used in amean calculation.
* hmean = harmonic mean.
* '''hmean''' = harmonic mean.
* nh =  number of obs used in hmean calculation.
* '''nh''' =  number of obs used in hmean calculation.
* gmean = geometric mean.
* '''gmean''' = geometric mean.
* ng = number of obs used in gmean calculation.
* '''ng''' = number of obs used in gmean calculation.
===Examples===
===Examples===
mns = means(x);
mns = means(x);
===See Also===
===See Also===
[[summary]]
[[summary]]

Revision as of 20:56, 2 September 2008

Purpose

Calculates the algebraic, 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