The input data matrix (X), number of end-members (q),
weight transformation limits (lw) and constant sum scaling
parameter (c) are checked for consistency. This includes checking
for absence of missing values, columns containing only zero-values and
for numeric data type of variables. Furthermore, a test is performed if
lw is below the maximum possible value, preventing numerical instability
prior to factor rotation.
Usage
check.data(X, q, lw, c, invisible = TRUE)
Arguments
X
Numeric matrix with m samples (rows) and n variables (columns).
q
Numeric scalar with number of end-members to be modelled.
lw
Numeric scalar or vector specifying the weight transformation limit, i.e.
quantile.
c
Numeric scalar specifying the constant sum scaling parameter, e.g. 1,
100, 1000.
invisible
Logical scalar setting visibility option.
Value
Character vector with test results.
References
Dietze E, Hartmann K, Diekmann B, IJmker J, Lehmkuhl F, Opitz S,
Stauch G, Wuennemann B, Borchers A. 2012. An end-member algorithm for
deciphering modern detrital processes from lake sediments of Lake Donggi
Cona, NE Tibetan Plateau, China. Sedimentary Geology 243-244: 169-180.