From the course: R for Excel Users

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Contingency tables from Desc

Contingency tables from Desc - R Tutorial

From the course: R for Excel Users

Contingency tables from Desc

- [Instructor] One more bivariate analysis to go, and so far, we've looked at a numeric-by-numeric analysis for which we get correlations, and we've looked at the analysis of a numeric variable by a factor from which we get the breakdowns of means, medians, and other statistics by the levels of that factor. The third and remaining type of bivariate analysis covered in this course examines one factor by another factor and returns a contingency table of the two factors. You get that using the Descfunction in the DescTools package. This lesson shows an example by breaking down the relationship between area and driver. Again, the data comes from the data frame named d.pizza and it's calling for the plotted argument to be true which means that we want it to show the charts. That is, by the way, the default for plotted. Notice that the main difference in the function syntax is that it calls for two nominal variables, area and…

Contents