correction
authorpierre <ratinaud@univ-tlse2.fr>
Tue, 25 Jan 2022 09:24:26 +0000 (10:24 +0100)
committerpierre <ratinaud@univ-tlse2.fr>
Tue, 25 Jan 2022 09:24:26 +0000 (10:24 +0100)
tabchi2mcnemar.py

index b1d5ce9..cff3167 100644 (file)
@@ -143,13 +143,13 @@ class McNemar(AnalyseMatrix):
         cont<-1
         """%(ffr(self.tableau.parametres['csvfile']), self.tableau.parametres['syscoding'])
         if len(self.colsel1)==1:
-            strsel1=str(self.colsel1).replace(',','')
+            strsel1=str(tuple(self.colsel1)).replace(',','')
         else:
-            strsel1=str(self.colsel1)
+            strsel1=str(tuple(self.colsel1))
         if len(self.colsel2)==1:
-            strsel2=str(self.colsel2).replace(',','')
+            strsel2=str(tuple(self.colsel2)).replace(',','')
         else:
-            strsel2=str(self.colsel2)
+            strsel2=str(tuple(self.colsel2))
         txt+="""
         for (i in c%s) {""" % strsel1
         txt+="""