Learn R Programming

REPPlab (version 0.9.6)

fitted.epplab: 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 epplab
fitted(object, which = 1, ...)

Value

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

Arguments

object

Object of class epplab.

which

Onto which direction should the new data be projected.

...

Additional parameters

Author

Daniel Fischer

Details

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

Examples

Run this code

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

Run the code above in your browser using DataLab