Displaying 1 result from an estimated 1 matches for "selectedmodel".
2013 May 21
2
problems with saving plots from loop
...) and I don?t want to do it manually.
So I use loop for this:
for (i in mydata[,2:201]){ #first column is concentration
pdf(paste("plot_",i,".pdf",sep = ""))
plot(i~concentration,log='x')
ht <- seq(0,5000,1)
lines(ht, predict(selectedmodel, data.frame(concentration = ht)))
#I previously
selected appropriate model for each column within loop
#(I don?t want to
write here the whole loop with model selection)
d...