fitted.epplab: Calculates projections of the Data

fitted.epplabR 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))


fischuu/REPPlab documentation built on April 19, 2023, 9:52 a.m.