Re: [R] cvm.test in CvM2SL2Test package and loops....

2014-03-01 Thread Rui Barradas
Hello, First of all, x and y don't seem to be lists, they seem to be matrices. Second, the instrucions a<<-x[,i] and b<<-y[,j] change the variables a and b that exist outside the function. Why? Third, exactly what do you mean by "crash"? What is the error message? Finally, your example, as is,

[R] cvm.test in CvM2SL2Test package and loops....

2014-03-01 Thread Levent TERLEMEZ
Dear Users, I have a problem with cvm.test using with for loop. It makes R crash while calculating. In the function, x and y are lists, also for loops controls the columns that will be tested: function (x,y) { cval=matrix(ncol=dim(x)[2],nrow=dim(x)[2]) for(i in 1:(ncol(x)-1)