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,
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)
2 matches
Mail list logo