hi im trying to filter out data into 2 parameters only and to run some function on it. but, it needs to be in a loop, as they'll be around 6 sets of data (2 parameters each [C and A, D and A, E and A, C and B, D and B, E and B]). so, what type of loop should I use?
data1<- filter(dat, ((treatment2== "C") & (treatment2== "A")))
print (data)
(this is where the loop needs)
function <- function(data1, intercept, slope, pow){
predicty = (intercept + slope (C ^ pow)
SSE= sum((data1 - predicty)^2)
return
}