X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=Rscripts%2FCHD.R;h=e6a3c7b5d6733ad2ec7e23d2155eff87da5e5305;hp=53fb813f4c7487dca279a034ba2a8fa4c40cd72e;hb=4f2dc8e6823ac5886f758a6ad3f1ae6acb01916c;hpb=e4fcd29b0d143168ba43be91e3c829eceefb0dd3 diff --git a/Rscripts/CHD.R b/Rscripts/CHD.R index 53fb813..e6a3c7b 100644 --- a/Rscripts/CHD.R +++ b/Rscripts/CHD.R @@ -1,6 +1,6 @@ #Author: Pierre Ratinaud #Copyright (c) 2008-2011 Pierre Ratinaud -#Lisense: GNU/GPL +#License: GNU/GPL pp<-function(txt,val) { d<-paste(txt,' : ') @@ -41,6 +41,10 @@ find.max <- function(dtable, chitable, compte, rmax, maxinter, sc, TT) { res } + + + + CHD<-function(data.in, x=9, mode.patate = FALSE, svd.method, libsvdc.path=NULL){ # sink('/home/pierre/workspace/iramuteq/dev/findchi2.txt') dataori <- data.in @@ -103,7 +107,7 @@ CHD<-function(data.in, x=9, mode.patate = FALSE, svd.method, libsvdc.path=NULL){ rmax <- NULL inert <- find.max(dtable, chitable, compte, rmax, maxinter, sc, TT) - print('@@@@@@@@@@@@@@@@@@@@@@@@@@@@') + print('@@@@@@@@@@@@@@@@@@@@@@@@@@@@') pp('max inter phase 1', inert$maxinter/TT)#max(listinter)) print('@@@@@@@@@@@@@@@@@@@@@@@@@@@@') ordert <- ordert[order(ordert[,3]),]