View source: R/ModelSelectionFunctions.R
GLMM.Select | R Documentation |
GLMM.Select
generates a vector that contains an AIC
,
an AICc
, a BIC
, and a dispersion
parameter estimate. Intent is to use this function in a loop to extract
model information criterion for a range of model formulations, facilitating
the automated selection of *best* model.
GLMM.Select( formula, data, family = gaussian(), ziformula = ~0, dispformula = ~1, weights = NULL, offset = NULL, contrasts = NULL, na.action = na.fail, se = TRUE, verbose = FALSE, doFit = TRUE, control = glmmTMBControl(profile = TRUE, collect = TRUE), REML = FALSE, start = NULL, map = NULL, sparseX = NULL )
formula |
combined fixed and random effects formula, following lme4 syntax. |
data |
data frame (tibbles are OK) containing model variables. Not
required, but strongly recommended; if |
family |
a family function, a character string naming a family
function, or the result of a call to a family function (variance/link
function) information. See |
ziformula |
a one-sided (i.e., no response variable) formula for
zero-inflation combining fixed and random effects: the default |
dispformula |
a one-sided formula for dispersion containing only
fixed effects: the default |
weights |
weights, as in |
offset |
offset for conditional model (only). |
contrasts |
an optional list, e.g., |
na.action |
a function that specifies how to handle observations
containing |
se |
whether to return standard errors. |
verbose |
whether progress indication should be printed to the console. |
doFit |
whether to fit the full model, or (if FALSE) return the pre-processed data and parameter objects, without fitting the model. |
control |
control parameters, see |
REML |
whether to use REML estimation rather than maximum likelihood. |
start |
starting values, expressed as a list with possible components
|
map |
a list specifying which parameter values should be fixed to a
constant value rather than estimated. |
sparseX |
a named logical vector containing (possibly) elements named
"cond", "zi", "disp" to indicate whether fixed-effect model matrices for
particular model components should be generated as sparse matrices, e.g.
|
See glmmTMB
For more information about the glmmTMB package, see Brooks et al.
(2017) and the vignette(package="glmmTMB")
collection. For the
underlying TMB package that performs the model estimation, see
Kristensen et al. (2016).
Brooks, M. E., Kristensen, K., van Benthem, K. J., Magnusson, A., Berg, C. W., Nielsen, A., Skaug, H. J., Mächler, M. and Bolker, B. M. (2017). glmmTMB balances speed and flexibility among packages for zero-inflated generalized linear mixed modeling. The R Journal, 9(2), 378–400.
Kristensen, K., Nielsen, A., Berg, C. W., Skaug, H. and Bell, B. (2016). TMB: Automatic differentiation and Laplace approximation. Journal of Statistical Software, 70, 1–21.
Millar, R. B. (2011). Maximum Likelihood Estimation and Inference: With Examples in R, SAS and ADMB. Wiley, New York.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.