Questions tagged [mumin]

MuMIn (**Mu**lti**m**odel **In**ference) is an R package for model selection and model averaging based on information criteria (AICc and alike).

90 questions
1
vote
2 answers

Including offset in poisson models double number of candidate models

Revised question and code (2020-07-10) This question has undertaken several edits as the analysis has progressed. I've included the most recent information here at the top, but for those who are stuck at other steps, please see the information…
tnt
  • 1,149
  • 14
  • 24
1
vote
2 answers

Error in predict(), R will not call predict.averaging() from MuMIn

Any help greatly appreciated, thanks in advance. I have averaged three GLMM models using the model.avg() function within the MuMIn package. I would now like to predict from this averaged model. However, when I call predict() R seems to think I want…
Pat Taggart
  • 321
  • 1
  • 9
1
vote
0 answers

R MuMIn model.avg() - relative importance not return

I am trying to use MuMIn's model.avg function: m06gamma.avg<-model.avg(get.models(dredge(glmer(biomassa_consumo ~ Renda.R.nor + dist_casa_urba_centro_kmnor + media_esfor_caça.anonor+ veg_prim_2.5km.nor+ +…
1
vote
0 answers

Plotting interactions from a 'model.averaging' object of a logistic regression in R

Searched stackoverflow multiple times for a solution to this question. One of the fundamental issues I am encountering is that I am unable to predict the interaction effects of certain model averaged coefficients on the response. I am currently…
Vijay Ramesh
  • 191
  • 1
  • 2
  • 20
1
vote
1 answer

Fixed terms in dredge function (MuMin) in GAM

I am trying to use MuMIn::dredge()function to build a GAM model. I am working on fish distribution and with the aim to speed up the analysis due the size of the dataset, I want to fix two variables, for example, depth and the interaction (latitude,…
Juan Carlos
  • 173
  • 13
1
vote
1 answer

Dredge MuMIn: when using a dredge on a GLMM, does the null model include random effects?

I have a global model using a GLMM with 5 fixed effects with interactions, as well as two random effects. x ~ a*b + a*c + a*d + a*e + (1|f) + (1|g) I am using an information theoretic approach and have used the dredge() function in MuMIn on this…
mikejwilliamson
  • 405
  • 1
  • 7
  • 17
1
vote
0 answers

Package MuMIn: function "r.rsquaredGLMM" does not work anymore

I frequently used extracted marginal and conditional R^2 from mixed models using r.rsquaredGLMM(mod) from package MuMIn. Since today this doesn't work any more and I get the following error: Error in r.rsquaredGLMM(mod) : could not find function…
KatLi
  • 11
  • 2
1
vote
1 answer

Dredge on an unmarked occupancy model (R MuMIn)

I am dredging an unmarked occupancy model and have run into a few obstacles: 1) After first dredging the detection component of the model, I am trying to dredge the occupancy component of the model with the fixed subset of predictors previously…
SilvanD
  • 325
  • 2
  • 14
1
vote
1 answer

MuMIn model.sel error with glmmTMB models

When I apply model.sel function to g0 model below, it runs fine. However when I create similar models using my data, I get the error as shown below. Any clues in why I could be getting this error? data(sleepstudy,package="lme4") g0 <-…
Gitu
  • 33
  • 5
1
vote
1 answer

dredge subsetting number of interactions (MuMIn)

I try to use MuMIn::dredge() on a global model to give me my candidate models, given certain criteria. I've read ?dredge and understood some of it, but I still have some question on how to include one of my criteria: If I have a global model with…
Mary
  • 11
  • 3
1
vote
0 answers

Prediction intervals from model average

Is it possible to get prediction intervals from a model average in R? I've used the MuMIn package to model-average several linear mixed models (that I fit using lme4::lmer()). The MuMIn package supports model predictions & st. errors of estimates…
filups21
  • 1,611
  • 1
  • 19
  • 22
1
vote
2 answers

predict.gls fails when the package "MuMin" is installed in R

I am getting an error message when using predict.gls when the package "MuMIn" is installed. The following (Ex. 1) works: ### EX. 1 library(nlme) # example code from https://stat.ethz.ch/R-manual/R-devel/library/nlme/html/predict.gls.html fm1 <-…
Asteraceae
  • 13
  • 2
1
vote
1 answer

Make models from rugarch package to configurate with MuMIn

I am trying to do model averaging and wish to combine models from the rugarch package and model estimated through "lm" function. I use daily financial index data converted into an xts object. Thereby, I run lm functions: …
Garten
  • 41
  • 1
1
vote
1 answer

Cannot run glmer models with na.action=na.fail, necessary for MuMIn dredge function

Mac OS 10.9.5, R 3.2.3, MuMIn_1.15.6, lme4_1.1-10 Reproducible example code, using example data The MuMIn user guide recommends using na.action=na.fail, otherwise the dredge function will not work, which I have found: Error in dredge:…
asmith
  • 93
  • 1
  • 6
1
vote
1 answer

Error in MuMIn dredge() when maximum number of model terms are used

I get a strange error like this one Strange error with Dredge: MuMIn under some cases of using dredge() or pdredge() in the MuMIn package. Error in while ((iComb <- iComb + 1L) < ncomb) { : missing value where TRUE/FALSE needed In addition:…
Sarah Grogan
  • 117
  • 1
  • 9