KPG1_ORVAR

Returns the variances and covariances of the order statistics from n to 1, assuming an initially normal distribution

Description:

The routine returns the variances and covariances of the order statistics, assuming an initial (pre-ordered) normal distribution of mean 0 and standard deviation 1. The routine returns all variance/covariances in an array with the terms vectorised - that is following on after each row. This uses the symmetric nature of the matrix to compress the data storage, but remember to double the covariance components if summing in quadrature. The variances

Invocation

CALL KPG1_ORVAR( NSET, NBIG, PP, VEC, STATUS )

Arguments

NSET = INTEGER (Given)
Number of members in ordered set.
NBIG = INTEGER (Given)
Maximum number of entries in covariance array row. equal to NSET(NSET+1)/2).
PP( NSET ) = DOUBLE PRECISION (Given)
Workspace for storing expected values of order statistics.
VEC( NBIG, NSET ) = DOUBLE PRECISION (Returned)
The upper triangles of the nset by nset variance-covariance matrix packed by columns. Each triangle is packed into a single row. For each row element Vij is stored in VEC(i+j(j-1)/2), for 1 <=i <=j <=nset.
STATUS = INTEGER (Given and Returned)
The global status.

Notes: