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....@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@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. > ______________________________________________ R-help@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.