1modAvgDens <- modavg(models,
2 "DistToCoast",
3 second.ord = TRUE,
4 c.hat = cHat,
5 parm.type = "lambda")
- 1
- Model set
- 2
- Covariate of interest
- 3
- Use small-sample correction factor
- 4
- Use QAICc
- 5
- Calculate density
Your analysis may show there is no best model
You may have:
In this situation, you can adopt a multi-model inference approach
In multi-model inference, you use your entire model set to calculate a weighted average of each parameter estimate
By using all your models, you acknowledge the uncertainty in which of your hypotheses is correct, and emphasise that there is still useful information even in the less-preferred models
You can calculate a model-averaged estimate of a parameter as1:
\[ \hat{\bar{\theta}} = \sum_{i=1}^R w_i \hat{\theta_i} \]
Where:
In simple terms, you:
\[ \begin{align} \hat{\theta_A} &= Estimate_{Model A} * Weight_{Model A} \\ \hat{\theta_A} &= Estimate_{Model B} * Weight_{Model B} + \\ \hline & \text{Model-averaged estimate, } \hat{\bar{\theta}} \\ \hline \end{align} % \text{spacer} % \hrule % \rule{\textwidth}{0.4pt} \]
How would we apply a model-averaging approach in our Chinese water deer case-study?1
With a choice of two detection functions, one density covariate and one detectability covariate, our full model set contains eight models:
Parameters
Half-normal
Hazard-rate
Calculating model-averaged estimates is simple in R, using AICcmodavg’s modavg()
function
Use the modavg()
function to calculate the weighted average of the coefficient for the distance to coast:
Multimodel inference on "lam(DistToCoast)" based on QAICc
QAICc table used to obtain model-averaged estimate:
(c-hat estimate = 1.240156)
K QAICc Delta_QAICc QAICcWt Estimate SE
hn._DTC 4 283.08 49.65 0 0 0
hnLC_DTC 5 233.43 0.00 1 0 0
haz._DTC 5 280.27 46.84 0 0 0
hazLC_DTC 6 247.36 13.93 0 0 0
Model-averaged estimate: 0
Unconditional SE: 0
95% Unconditional confidence interval: 0, 0
The first column in the table shows which models contain DistToCoast as a predictor, and are therefore contributing to this model-averaged parameter estimate
Note the model weights
When we consider this subset, the QAICc weight is all loaded on the half-normal model with Landcover as a predictor of detectability
The output below the table provides the model-averaged estimate, and its SE and 95% CI
There are two important take-home messages
Weak models have little influence
Weak models fail to contribute to the model-averaged estimate
Confidence intervals are wider
Confidence intervals of the model-averaged estimate include zero, emphasising what we already know from our previous analyses: Distance to coast is not a good predictor of water deer density
Unfortunately modavg()
only works for density, not detectability, but you can calculate model-averaged estimates for detectability by hand using the equation provided earlier