Hi, I`m making a multivariate cluster analysis with daisy function. When I rut it, it appears me a warning message saying binary variables are being treated as interval scaled variables, even though I specify their nature within the programming. Can somebody help me? (it is very important each variable is treated as I specified). Just for clarify, my data is composed of 38 observations with 24 variables each one, given by this order: binary symmetric, binary asymmetric, ordinal, nominal, and numeric.
I would really appreciate if somebody could help me
Here is my code:
install.packages(c("cluster", "factoextra", "backports"))
library(c("cluster", "factoextra", "backports"))
setwd("C:/Users/Isa/Desktop/Escritorio/Colegio/MonografĂa/Datos/Cluster")
data <-read.csv(file="EncuestaR1.csv", header =TRUE, sep=";", dec = ",", row.names
= 1 )
d <- daisy(data, metric = "gower", type =list(ordered=
c(9,10,11,12,13),asymm=c(5,6,7,8), symm=c(1,2,3,4), factor=c(14,15,16,17,18),
numeric=c(19,20,21,22,23,24)))
d
round(as.matrix(d)[1:24,1:24],3)