How to make a dendograma from qualitative variables in R?

Asked

Viewed 53 times

1

Good morning. Please, I need a script or explanation of how to make a dendograma/cluster from qualitative variables. I saw somewhere that it is possible to do that using the output of ANACOR, but I have no idea what values to take.

  • 1

    First create a contingency table and then see the help("hclust"). Something like this: data(Cars93, package = "MASS"); tabela_cont <- xtabs(~ Type + Origin, Cars93); d <- dist(tabela_cont); hc <- hclust(d); plot(hc) `

  • Thank you very much Ruby. The example is perfect! Hugs

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.