predict.prcomp_qts | R Documentation |
This function predicts the QTS of a new sample from the PCA decomposition of a previous sample.
## S3 method for class 'prcomp_qts'
predict(object, newdata, ...)
object |
An object of class |
newdata |
An object of class |
... |
Additional arguments. Not used here. |
An object of class qts_sample
containing the predicted QTS.
# Fit PCA model
pr <- prcomp(vespa64$igp, M = 5)
# Predict QTS
new_qts <- predict(pr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.