fitted.epplab {REPPlab}R Documentation

Calculates projections of the Data

Description

Calculates the projections of the data object onto the directions from an underlying ebblab object.

Usage

## S3 method for class 'epplab'
fitted(object, which = 1, ...)

Arguments

object

Object of class epplab.

which

Onto which direction should the new data be projected.

...

Additional parameters

Details

The default projection direction is the direction with the best objective criterion.

Value

A matrix, having in each column the projection onto the direction of a certain run, and in each row the projected value.

Author(s)

Daniel Fischer

Examples


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))


[Package REPPlab version 0.9.6 Index]