Skip to content

AICcmodavg

3 messages · KerryGK, David Winsemius

#
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.
#
On Sep 13, 2012, at 5:52 AM, KerryGK wrote:

            
------------------------------------------------------^
Not at all surprising. The usual response of a programmer faced with code that goes wrong at a particular point should be to _first_ look for missing commas or parentheses. In your case it is a missing comma.
David Winsemius, MD
Alameda, CA, USA
#
On Sep 13, 2012, at 9:00 AM, David Winsemius wrote:

            
Skitt's Law, again. comma != double-quote.