Description Usage Arguments Details Value Missing Policy Note Author(s) References See Also Examples
Closes compositions to sum up to one (or an optional total), by dividing each part by the sum.
1 2 3 4 5 6 
X 
composition or dataset of compositions 
parts 
vector containing the indices xor names of the columns to be used 
total 
the total amount to which the compositions should be closed; either
a single number, or a numeric vector of length

detectionlimit 
a number, vector or matrix of positive numbers giving the detection limit of all values, all variables, or each value 
BDL 
the code for values below detection limit in X 
SZ 
the code for structural zeroes in X 
MAR 
the code for values missed at random in X 
MNAR 
the code for values missed not at random in X 
storelimit 
a boolean indicating wether to store the detection limit as an attribute in the data. It defaults to FALSE if the detection limit is not already stored in the dataset. The attribute is only needed for very advanced analysis. Most times, this will not be used. 
The closure operation is given by
clo(x) := ( \emph{x_i} / sum(x_j))
clo
generates a composition without assigning one of the
compositional classes acomp
or rcomp
.
Note that after computing the closedtoone version, obtaining a
version closed to any other value is done by simple multiplication.
a composition or a data matrix of compositions, maybe without compositional class. The individual compositions are forced to sum to 1 (or to the optionallyspecified total). The result should have the same shape as the input (vector, row, matrix).
How missing values are coded in the output always follows the general rules
described in compositions.missing
. The BDL values are
accordingly scaled during the scaling operations but not taken into
acount for the calculation of the total sum.
clo
can be used to unclass compositions.
K.Gerald v.d. Boogaart http://www.stat.boogaart.de, Raimon TolosanaDelgado
Aitchison, J. (1986) The Statistical Analysis of Compositional Data Monographs on Statistics and Applied Probability. Chapman & Hall Ltd., London (UK). 416p.
1 2 3 4 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.