Pctile2: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Jeremy
(Importing text file)
imported>Jeremy
(Importing text file)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
===Purpose===
===Purpose===
Returns the Pth percentile of a data vector.
Returns the Pth percentile of a data vector.
===Synopsis===
===Synopsis===
:pctile = pctile2(x,p)
:pctile = pctile2(x,p)
===Description===
===Description===
The return value (pctile) is the specified percentile of the sample. This is an alternative to the pctile1 command used by the summary command.
The return value (pctile) is the specified percentile of the sample. This is an alternative to the pctile1 command used by the summary command.
====INPUTS====
 
====Inputs====
 
* '''x''' = matrix (column vector) in which the sample data is stored.
* '''x''' = matrix (column vector) in which the sample data is stored.
* '''p''' = integer (1,100), percentile to calculate.
* '''p''' = integer (1,100), percentile to calculate.
===Examples===
===Examples===
pctl = pctile2(x,50)
pctl = pctile2(x,50)
===See Also===
===See Also===
[[pctile1]]
[[pctile1]]

Latest revision as of 17:34, 3 September 2008

Purpose

Returns the Pth percentile of a data vector.

Synopsis

pctile = pctile2(x,p)

Description

The return value (pctile) is the specified percentile of the sample. This is an alternative to the pctile1 command used by the summary command.

Inputs

  • x = matrix (column vector) in which the sample data is stored.
  • p = integer (1,100), percentile to calculate.

Examples

pctl = pctile2(x,50)

See Also

pctile1