search for: iscor

Displaying 1 result from an estimated 1 matches for "iscor".

Did you mean: isor
2013 Feb 08
1
help with double looping
...11, vB1, vB2,..., VB11,......., VP1, VP2,...., VP11 (so 16 times a sequence of 11 variables) I am trying to build a double loop so that i can apply the function (i-1)*v(i) to the first 10 variables, then the same for the next 10 variables, etc... 16 times. I have tried the following with no luck: iscores<-list() for (j in seq(1,166,11)) { for (i in j:(j+10)) {iscores[[i-j+1]]=(i-j)*data[[i-j+1]] } } any suggestion...? many thanks, Christel [[alternative HTML version deleted]]