Displaying 1 result from an estimated 1 matches for "mymod_3".
Did you mean:
mymod3
2006 Dec 11
1
organizing stats from a list of models
...ike retrieve the list from the R environment and save their AICs (and other info) on a table. I´m trying something like:
-------------------------
y<-runif(20,min=0,max=1)
x1<-runif(20,min=0,max=1)
x2<-runif(20,min=0,max=1)
mymod_1 <-glm(y~x1)
mymod_2<-glm(y~x2)
mymod_3<-glm(y~x1+x2)
model.list<-ls(pat="mymod_")
model.list
[1] "mymod_1" "mymod_2" "mymod_3"
-------------------------
Now I would like have something like
model_name call AIC
mymod_1 glm(y~x1) 13.11942
mymod_2 glm(y~x2) 13.11942
mymod_3...