r - Extact 'deviance' simultaneously from multiple objects -
i'm r beginner
from data set, i've fitted different 10 log-linear models, according multiple combination of explain variables.
model1 model2 model3 . . . model10
i want extract deviance of each model, model1 model10
i can extract below deviance(model1) deviance(model2) . . . deviance(model10)
but think takes time, , no good-looking.
how can extract deviance 'simultaneously' multiple object?
is there function or package ?
please let me know. thank
another approach maybe
lapply(mget(paste0("model",1:10)),deviance)
Comments
Post a Comment