Re: [R] Function in nested loop

2011-10-18 Thread R. Michael Weylandt
Without knowing the calculation you want to run, I can't give you any more direction than this, but it sounds like you need to take a step back and rethink your problem in terms of vectorization. If you can do so, outer() might be able to help as well as direct vectorwise calculation. If it's enti

[R] Function in nested loop

2011-10-18 Thread Eekhout, I.
Hi all, I would like to run a function with several nested conditions, which are completely factorial. The input data (x1) has two different sample sizes, so: x1 <- dat1 x1 <- dat2 Then a can have 3 different values: a <- 0.15 a <- 0.35 a <- 0.50 Then b can have 2 different values: b <- data.matr