projects
/
iramuteq
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8aafcca
)
correction
author
pierre
<pierre.ratinaud@univ-tlse2.fr>
Mon, 12 Feb 2024 15:23:40 +0000
(16:23 +0100)
committer
pierre
<pierre.ratinaud@univ-tlse2.fr>
Mon, 12 Feb 2024 15:23:40 +0000
(16:23 +0100)
Rscripts/chdquest.R
patch
|
blob
|
history
diff --git
a/Rscripts/chdquest.R
b/Rscripts/chdquest.R
index
b4c4a49
..
f40a368
100644
(file)
--- a/
Rscripts/chdquest.R
+++ b/
Rscripts/chdquest.R
@@
-157,7
+157,7
@@
Rchdquest<-function(tableuc1,listeuce1,uceout ,nbt = 9, mincl = 2, mode.patate =
chitable[2,1]<-poids2[j]-chitable[1,1]
chitable[2,2]<-nrow(classeuce1)-poids2[j]-chitable[1,2]
chitest<-chisq.test(chitable,correct=FALSE)
- if ((chitable[1,1]-chitest$expected)<0) {
+ if ((chitable[1,1]-chitest$expected
[1,1]
)<0) {
chicroise[i,j]<--round(chitest$statistic,digits=7)
} else {
chicroise[i,j]<-round(chitest$statistic,digits=7)