EPM: External preference mapping

View source: R/EPM.R

EPMR Documentation

External preference mapping

Description

This function is dedicated for hedonic data segmentation

Usage

EPM(Y, X, ModelType = "Quadratic", respt = FALSE, nbpoints = 50,
  Graphpred = FALSE, Graph2D = FALSE, Graph3D = FALSE,
  statistic.Value.Type = "rsquared")

Arguments

Y

:a numeric matrix or a data frame with all numeric columns (Ex:consumers scores).

X

:a data frame with n rows (individuals) and p columns (numeric variables)

ModelType

:Type of regression's model can be 'Vector' ,'Circular','Quadratic' or 'Eliptic'

respt

a vaiable

nbpoints

:Number of points to create the dicrete space

Graphpred

:TRUE if you want to view the Prediction scores of one consumer heatmap,FALSE otherwise

Graph2D

:TRUE if you want to view preferences of one consumer,FaLSE otherwise

Graph3D

:TRUE if you want to view the external preference Map in 3D,FALSE otherwise

statistic.Value.Type

:Extract the 'rsquared' , 'fstatistic' or 'AIC' of every regression

Value

pred,pref,Regression,Statistic.values,Graphpred,Graph2D,Graph3D

Examples

library(ClusteringR)

E=EPM(Y=hedo,X=senso,ModelType='Quadratic',
nbpoints=50,Graphpred=FALSE,Graph2D=FALSE,
Graph3D=FALSE,statistic.Value.Type='rsquared')
consumer.preferences=E$prefc


BouzidiImen/ClusteringR documentation built on March 22, 2022, 8:50 p.m.