O'Reilly logo

R Data Analysis Cookbook - Second Edition by Kuntal Ganguly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Comparing the model's performance for different classes

You can check whether the model's performance on different classes differs significantly with the summary function:

> summary(tab) 
Number of cases in table: 4000  
Number of factors: 2  
Test for independence of all factors: 
  Chisq = 4449, df = 4, p-value = 0 

The low p-value tells us that the proportions for the different classes are significantly different.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required