EPM | R Documentation |
This function is dedicated for hedonic data segmentation
EPM(Y, X, ModelType = "Quadratic", respt = FALSE, nbpoints = 50, Graphpred = FALSE, Graph2D = FALSE, Graph3D = FALSE, statistic.Value.Type = "rsquared")
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 |
pred,pref,Regression,Statistic.values,Graphpred,Graph2D,Graph3D
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.