Hi Chris,
Thanks for sending me the code and data offlist. The newdata argument
in modavgPred( ) requires values for each explanatory variable
appearing in your models for a given parameter (e.g., occupancy,
detection probability). In your case, some explanatory variables were
missing in the newdata data.frame. To see quickly all the variables
appearing in your models on a given parameter, you can use extractX( ).
For example, extractX(cand.set, parm.type = "psi"), will show you the
variables appearing on occupancy in the list of candidate models
(cand.set).
Once you fix this issue with the newdata data.frame, you will be able
to get model-averaged predictions for an average site, i.e., marginal
predictions. These are usually the predictions you want to display when
using random effects. If you want to get predictions for a specific
level of a random effect, then you will have to wait for the next
release of AICcmodavg this summer.
Best,
--
____________________________________
Marc J. Mazerolle
Professeur agrégé et directeur du bac. en environnements naturels et
aménagés
Département des sciences du bois et de la forêt
2405 rue de la Terrasse
Université Laval
Québec, Québec G1V 0A6, Canada
Tel:
(418) 656-2131 ext. 407120
Email:
marc.ma...@sbf.ulaval.ca
-------- Message initial --------
De: Christopher Dennison <
christophe...@gmail.com>
Répondre à:
unma...@googlegroups.com
À: unmarked <
unma...@googlegroups.com>
Objet: [unmarked] Plotting modavgPred() for single season occupancy
models with random effects
Date: Tue, 21 May 2024 15:39:34 -0700