[R] Error message in dredge function (MuMIn package) used with binary GLM
Kamil Barton
k.barton at abdn.ac.uk
Sat Mar 30 02:48:50 CET 2013
'rank' should be "QAICc".
AICc does not have argument 'chat', hence the error.
kamil
CatCowie wrote
> Hi all,
>
> I'm having trouble with the model generating 'dredge' function in the
> MuMIn
> 'Multi-model Inference' package.
>
> Here's the script:
>
> globalmodel<- glm(TB~lat+protocol+tested+
> streams+goats+hay+cattle+deer,
> family="binomial")
> chat<- deviance(globalmodel)/59 #There we 59 residual degrees of freedom
> in
> this global model.
> models<- dredge(globalmodel, beta=FALSE, evaluate=TRUE, rank="AICc",
> chat=chat, fixed=NULL, trace=FALSE)
>
> And the error message is:
>
> Error in UseMethod("logLik") :
> no applicable method for 'logLik' applied to an object of class
> "logical"
>
> I have trawled the literature and it seems to be ok to use a binary GLM as
> the global model - could this be the problem? The variables are a mix of
> binary and continuous data.
>
> Any thoughts?
> Thanks,
> Cat
--
View this message in context: http://r.789695.n4.nabble.com/Error-message-in-dredge-function-MuMIn-package-used-with-binary-GLM-tp4662842p4662881.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list