Storing results of loop iterations in R
I am trying to store the results of the the code below, however I could only come up with a solution to save the results of the model with the smallest sum of squared residuals. This was useful until the results were in the limits of the range of both c and gamma, therefore I need to assess the characteristics of other points. For this I need to store the results of every iteration. Does anyone know how to do this in this case? Thanks in advance! dlpib1 <- info$dlpib1 scale <- sqrt(var(dlpib1)) RSS.m <- 10 for (c in seq(-0.03,0.05,0.001)){ for (gamma in seq(1,100,0.2)) { trans <- (1+exp(-