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
4
votes
1 answer

How to plot from MuMIn model.avg() summary

Is there a way to directly plot model average summary outputs from MuMIn model.avg() for different variables with confidence bands. Previously I had been using ggplot and ggpredict to plot terms from the actual models, but I haven't been able to…
sk_32
  • 41
  • 1
  • 5
4
votes
2 answers

Calculating R squared for Poisson GLMM using MuMIn r.squaredGLMM

I am modeling abundance for a species of bird using a Poisson generalized mixed model using glmer in the R package "lme4". An example of my data: abund point_id patch_area vis_per_year year 6 EL_03Plot035 244.69412 C_5 2003 0 …
Mo Correll
  • 57
  • 1
  • 8
3
votes
1 answer

Parallel processing cluster not used when running dredge on a MCMCglmm model with the parallel package

I am using MCMCglmm to run a PGLMM model. Since the aim is not to make predictions, I'm using dredge (from MuMIn) to calculate model-weighted parameter values and confidence intervals. Due to the large number of fixed effects, I thought it would be…
Gesler
  • 33
  • 3
3
votes
0 answers

R library MuMin dredge function not finding data when called from inside a function in parellel mode

I'm trying to call the MuMIN dredge function in parallel mode from inside a function that sets up the data for the model. Even if I pass the data to the clusters with clusterExport, dredge seems to be looking for the data in the global environment.…
3
votes
2 answers

dredge doesn't work when specifying glmer optimizer

I am trying to use dredge from the R package MuMIn with a global binomial glmer model. I find that I need to specify the optimizer with control = glmerControl(optimizer="bobyqa") for convergence. However, when I go to use dredge, I get an error. If…
ecologist1234
  • 225
  • 1
  • 8
3
votes
1 answer

Plot model fit for discrete variable, from average model

I have a set of linear mixed models, and have created an average model. I'd like to plot the model fits for two levels of a factor, included in the average model. A simple example: library(lme4) library(MuMIn) mtcars2 <- mtcars mtcars2$vs <-…
Axeman
  • 32,068
  • 8
  • 81
  • 94
3
votes
0 answers

Why does MuMIn give weird results with MCMCglmm?

As one option for model selection for MCMCglmm (see also this related question) I am trying out model averaging using the package MuMIn. It doesn't seem to work - see output below. Any ideas why? The output looks nonsense. In particular, there are a…
user2390246
  • 257
  • 1
  • 8
3
votes
1 answer

Error in model selection (gamm4) dredge function (MuMIn R package): family not recognised, model skipped

I am trying to do model selection for generalized additive mixed models (made using gamm4 using the MuMIn package in R. I am essentially trying to follow this piece of literature for model selection with MuMIn and gamm4. I am creating a model with 9…
emboylen
  • 137
  • 2
  • 13
3
votes
1 answer

Partial residual plot based on model average coefficients in R

I'm using the R package MuMIn to do multimodel inference and the function model.avg to average the coefficients estimated by a set of models. To visually compare the data to the estimated relationships based on the averaged coefficients, I want to…
Marie Auger-Methe
  • 808
  • 1
  • 8
  • 20
2
votes
1 answer

Best method for running model with different variables combinations

I'm trying to fit a model with different combinations of the variables in my data. I want to find the best performing way to do so. There are a lot of similar questions (link, link, link, link, link, to list the most interacted with ones). Most of…
2
votes
1 answer

Subsetting with dredge function (MuMin)

I'm trying to subset a series of models dredged from a global model that has both linear & non-linear terms. There are no interactions e.g. Glblm <- Y ~ X1 + X2 + X3 + I(X3^2) + X4 + X5 + X6 + I(X6^2) + X7 + I(X7^2) I want to specify that X3^2…
2
votes
1 answer

Plotting predicted model results for averaged models (lm, glm or glmm)

I used MuMIn::model.avg to average several models* and I am interested in plotting the predicted results of the conditional (not full) model average. I tried both ggeffects::ggpredict and sjPlot::plot_model, and both only give the full model…
Ron Efrat
  • 41
  • 3
2
votes
0 answers

Does the "subset" command in MuMIn's dredge function work with random effects?

I have the following GLMM with a random slope that I'm conducting model averaging on using MuMIn "dredge" (I don't think my dataset is relevant so I'm just including the code here): sett_global2 <- glmmTMB(sett_dens~ depth_scale + sst_six_scale +…
Conrad
  • 45
  • 6
2
votes
2 answers

Error in MuMin pdredge() when using more than 30 predictor variables

I've run into the following error that only occurs when I pass a model with more than 30 predictors to pdredge(): Error in sprintf(gettext(fmt, domain = domain), ...) : invalid format '%d'; use format %f, %e, %g or %a for numeric objects I'm…
Jon Wells
  • 23
  • 5
2
votes
0 answers

Convert model averaging results from MuMin to plot in visreg or effects packages

I'm using MuMin to perform model averaging using glmmTMB to build the global model, which all works fine. I would then like to produce effect displays of results using the visreg or effects package. Both of these work fine on regular models produced…
Rich_b
  • 21
  • 1
1
2 3 4 5 6