predict.genDiag {gmGeostats} | R Documentation |
Predict method for generalised diagonalisation objects
Description
Predict method for generalised diagonalisation objects
Usage
## S3 method for class 'genDiag'
predict(object, newdata = NULL, ...)
Arguments
object |
a generalized diagonalisation object, as obtained from a call to
|
newdata |
a matrix or data.frame of factor scores to convert back to the original
scale (default: the scores element from |
... |
not used, kept for generic compatibility |
Value
A data set or compositional object of the nature of the original data used for creating the genDiag object.
See Also
Other generalised Diagonalisations:
Maf()
,
coloredBiplot.genDiag()
Examples
data("jura", package="gstat")
juracomp = compositions::acomp(jura.pred[, -(1:6)])
lrvg = logratioVariogram(data=juracomp, loc=jura.pred[,1:2])
mf = Maf(juracomp, vg=lrvg)
mf
biplot(mf)
predict(mf)
unclass(predict(mf)) - unclass(juracomp) # predict recovers the original composition
[Package gmGeostats version 0.11.3 Index]