predict.prcomp_qts {squat} | R Documentation |
Predict QTS from PCA decomposition
Description
This function predicts the QTS of a new sample from the PCA decomposition of a previous sample.
Usage
## S3 method for class 'prcomp_qts'
predict(object, newdata, ...)
Arguments
object |
An object of class |
newdata |
An object of class |
... |
Additional arguments. Not used here. |
Value
An object of class qts_sample
containing the predicted QTS.
Examples
# Fit PCA model
pr <- prcomp(vespa64$igp, M = 5)
# Predict QTS
new_qts <- predict(pr)
[Package squat version 0.3.0 Index]