search for: 565x24

Displaying 1 result from an estimated 1 matches for "565x24".

Did you mean: 565224
2013 Feb 23
1
Issue with matrices within nested for-loops
...t=sub) cf<-coef(fit) p <- cf[1] + cf[2] * x[-sub] resid[k,] <- obs[-sub] - p } results[i] <- mean(resid^2) } where* R2* is a 24x1 matrix with recruitment data, *comb* was a cbind() object combining two matrices and *all.mat* is the final 565x24 matrix of modeled environmental scenarios. When the script is run the first 99 scenarios are processed properly and I get readable output. At scenario 100 however, I get this message: *Error in na.omit.data.frame(list(obs = c(0.414153096303487, 1.39649463342491, : subscript out of bounds* Which...