fitted.epplab | R Documentation |
Calculates the projections of the data object onto the directions from an
underlying ebblab
object.
## S3 method for class 'epplab'
fitted(object, which = 1, ...)
object |
Object of class |
which |
Onto which direction should the new data be projected. |
... |
Additional parameters |
The default projection direction is the direction with the best objective criterion.
A matrix, having in each column the projection onto the direction of a certain run, and in each row the projected value.
Daniel Fischer
library(tourr)
data(olive)
res <- EPPlab(olive[,3:10],PPalg="PSO",PPindex="KurtosisMin",n.simu=10, maxiter=20)
# Projection to the best direction
fitted(res)
# Projection to the 1,2,5 best directions:
fitted(res,which=c(1,2,5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.