[R] AICcmodavg

KerryGK kerry.griffis-kyle at ttu.edu
Thu Sep 13 14:52:20 CEST 2012


I am using the AICmodavg package and using R version 2.15.1.  I need help
with code that is instead being read as text.  

Below is a subset of code... I actually have 12 models, but I am trying to
get this to work for 2 below right now.

Everything 'appears' to work through the line starting with Modnames.  After
that the code starting with aictab and beyond is recognized as text and not
code.  What am I doing incorrectly with the code?  

buco.models<-list ( )
buco.models [[1]] <- glm(P.BUCO~faverage+W15CNT, family=binomial(logit),
data=AmphAIC)
buco.models [[2]] <- glm(P.BUCO~diam1+W15CNT, family=binomial(logit),
data=AmphAIC)
Modnames<-paste (“mod” , 1:length(buco.models), sep=")
aictab(cand.set = buco.models, modnames = Modnames, sort=TRUE))
print(aictab(cand.set = buco.models, modnames = Modnames, sort=TRUE) digits
= 4)

Thank you in advance.

Kerry Griffis-Kyle



--
View this message in context: http://r.789695.n4.nabble.com/AICcmodavg-tp4643016.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list