I am trying to use the predict function on a list that contains 500 regression models.
Here is how far I have got:
lapply(reg_results, function(model) {predict(model, newdata=subset(df,key==1))})
However, it is not working :(.
Thank you,
I am trying to use the predict function on a list that contains 500 regression models.
Here is how far I have got:
lapply(reg_results, function(model) {predict(model, newdata=subset(df,key==1))})
However, it is not working :(.
Thank you,