[R] correlation between categorical data

Dylan Beaudette dylan.beaudette at gmail.com
Fri Jun 19 23:10:07 CEST 2009


Not an expert, but I would try some of the following:

# tabulate joint frequencies
?table
?xtabs

# plotting
mosaicplot(Titanic, main = "Survival on the Titanic", color = TRUE, shade=TRUE)

# log-linear models

check the library for more ideas.

Cheers,
Dylan

On Fri, Jun 19, 2009 at 2:04 PM, Michael<comtech.usa at gmail.com> wrote:
> Hi all,
>
> In a data-frame, I have two columns of data that are categorical.
>
> How do I form some sort of measure of correlation between these two columns?
>
> For numerical data, I just need to regress one to the other, or do
> some pairs plot.
>
> But for categorical data, how do I find and/or visualize correlation
> between the two columns of data?
>
> Thanks!
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>




More information about the R-help mailing list