#NEWLINE# def test_fleiss_kappa_irr( ) : #NEWLINE# #INDENT# fleiss = Holder ( ) #NEWLINE# fleiss . method = "Fleiss' Kappa for m Raters" #NEWLINE# fleiss . irr_name = 'Kappa' #NEWLINE# fleiss . value = 0.4302445 #NEWLINE# fleiss . stat_name = 'z' #NEWLINE# fleiss . statistic = 17.65183 #NEWLINE# fleiss . p_value = 0 #NEWLINE# data_ = aggregate_raters ( diagnoses ) [ 0 ] #NEWLINE# res1_kappa = fleiss_kappa ( data_ ) #NEWLINE# assert_almost_equal ( res1_kappa , fleiss . value , decimal = 7 )