Package: glmmTMB 1.1.10

Mollie Brooks

glmmTMB: Generalized Linear Mixed Models using Template Model Builder

Fit linear and generalized linear mixed models with various extensions, including zero-inflation. The models are fitted using maximum likelihood estimation via 'TMB' (Template Model Builder). Random effects are assumed to be Gaussian on the scale of the linear predictor and are integrated out using the Laplace approximation. Gradients are calculated using automatic differentiation.

Authors:Mollie Brooks [aut, cre], Ben Bolker [aut], Kasper Kristensen [aut], Martin Maechler [aut], Arni Magnusson [aut], Maeve McGillycuddy [ctb], Hans Skaug [aut], Anders Nielsen [aut], Casper Berg [aut], Koen van Bentham [aut], Nafis Sadat [ctb], Daniel Lüdecke [ctb], Russ Lenth [ctb], Joseph O'Brien [ctb], Charles J. Geyer [ctb], Mikael Jagan [ctb], Brenton Wiernik [ctb], Daniel B. Stouffer [ctb], Michael Agronah [ctb]

glmmTMB_1.1.10.tar.gz
glmmTMB_1.1.10.tar.gz(r-4.5-noble)glmmTMB_1.1.10.tar.gz(r-4.4-noble)
glmmTMB_1.1.10.tgz(r-4.4-emscripten)glmmTMB_1.1.10.tgz(r-4.3-emscripten)
glmmTMB.pdf |glmmTMB.html
glmmTMB/json (API)
NEWS

# Install 'glmmTMB' in R:
install.packages('glmmTMB', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/glmmtmb/glmmtmb/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library
Datasets:
  • Owls - Begging by Owl Nestlings
  • Salamanders - Repeated counts of salamanders in streams
  • epil2 - Seizure Counts for Epileptics - Extended
  • spider_long - Spider data from CANOCO, long format

cppopenmp

10.14 score 25 packages 3.8k scripts 24k downloads 373 mentions 46 exports 16 dependencies

Last updated 2 months agofrom:13372b27df. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKNov 26 2024
R-4.5-linux-x86_64OKNov 26 2024

Exports:bellbeta_familybetabinomialcompoisdiagnosedtruncated_nbinom1dtruncated_nbinom2dtruncated_poissonfamily_paramsfinalizeTMBfitTMBfixefgenpoisget_corgetCapabilitiesgetGrpVargetMEgetReStrucglmmTMBglmmTMBControlgt_loadlognormalnbinom1nbinom12nbinom2numFactoromp_checkordbetaparseNumLevelsput_corranefrefitset_simcodessigmasimulate_newskewnormalt_familytruncated_compoistruncated_genpoistruncated_nbinom1truncated_nbinom2truncated_poissontweedieup2dateVarCorrziGamma

Dependencies:bootlatticelme4MASSMatrixmgcvminqanlmenloptrnumDerivrbibutilsRcppRcppEigenRdpackreformulasTMB

basic examples of glmmTMB usage

Rendered fromglmmTMB.Rnwusingknitr::knitron Nov 26 2024.

Last update: 2023-03-19
Started: 2017-02-20

Covariance structures with glmmTMB

Rendered fromcovstruct.rmdusingknitr::rmarkdownon Nov 26 2024.

Last update: 2024-09-27
Started: 2017-02-20

Hacking glmmTMB

Rendered fromhacking.rmdusingknitr::rmarkdownon Nov 26 2024.

Last update: 2023-10-07
Started: 2022-11-16

Miscellaneous examples

Rendered frommiscEx.rmdusingknitr::rmarkdownon Nov 26 2024.

Last update: 2021-06-24
Started: 2017-10-26

Model evaluation

Rendered frommodel_evaluation.Rnwusingknitr::knitron Nov 26 2024.

Last update: 2023-10-07
Started: 2020-02-03

Parallel optimization using glmmTMB

Rendered fromparallel.rmdusingknitr::rmarkdownon Nov 26 2024.

Last update: 2022-11-16
Started: 2022-11-16

Post-hoc MCMC with glmmTMB

Rendered frommcmc.rmdusingknitr::rmarkdownon Nov 26 2024.

Last update: 2024-03-21
Started: 2017-02-20

Priors in glmmTMB

Rendered frompriors.rmdusingknitr::rmarkdownon Nov 26 2024.

Last update: 2024-09-27
Started: 2024-03-21

Simulate from a fitted glmmTMB model or a formula

Rendered fromsim.rmdusingknitr::rmarkdownon Nov 26 2024.

Last update: 2024-09-27
Started: 2017-02-20

Troubleshooting with glmmTMB

Rendered fromtroubleshooting.rmdusingknitr::rmarkdownon Nov 26 2024.

Last update: 2021-09-20
Started: 2017-02-20

Readme and manuals

Help Manual

Help pageTopics
Downstream methodsAnova.glmmTMB downstream_methods Effect.glmmTMB emmeans.glmmTMB
Get theta parameterisation of a covariance structureas.theta.vcov
Calculate confidence intervalsconfint.glmmTMB
diagnose model problemsdiagnose
truncated distributionsdtruncated_nbinom1 dtruncated_nbinom2 dtruncated_poisson
Seizure Counts for Epileptics - Extendedepil2
Retrieve family-specific parametersfamily_params
Optimize TMB models and package results, modularlyfinalizeTMB fitTMB
Extract fixed-effects estimatesfixef fixef.glmmTMB
Format the 'VarCorr' Matrix of Random EffectsformatVC
Extract the formula of a glmmTMB objectformula.glmmTMB
translate vector of correlation parameters to correlation valuesget_cor put_cor
List model options that glmmTMB knows aboutgetCapabilities
Extract or Get Generalize Components from a Fitted Mixed Effects ModelgetME getME.glmmTMB
Calculate random effect structure Calculates number of random effects, number of parameters, block size and number of blocks. Mostly for internal use.getReStruc
Create X and random effect terms from formulagetXReTrms
Fit Models with TMBglmmTMB
Control parameters for glmmTMB optimizationglmmTMBControl
support methods for parametric bootstrappingisLMM.glmmTMB refit.glmmTMB
Set map values for theta to be fixed (NA) for proptomap.theta.propto
Family functions for glmmTMBbell betabinomial beta_family compois family_glmmTMB genpois lognormal nbinom1 nbinom12 nbinom2 ordbeta skewnormal truncated_compois truncated_genpois truncated_nbinom1 truncated_nbinom2 truncated_poisson tweedie t_family ziGamma
Factor with numeric interpretable levels.numFactor parseNumLevels
Check OpenMP statusomp_check openmp
Begging by Owl NestlingsOwlModel OwlModel_nb1_bs OwlModel_nb1_bs_mcmc Owls
predictionpredict.glmmTMB
Printing The Variance and Correlation Parameters of a 'glmmTMB'print.VarCorr.glmmTMB
use of priors in glmmTMBpriors
Compute likelihood profiles for a fitted modelconfint.profile.glmmTMB profile.glmmTMB
Extract Random Effectsas.data.frame.ranef.glmmTMB coef.glmmTMB ranef ranef.glmmTMB
Reinstalling binary dependenciesreinstalling
Compute residuals for a glmmTMB objectdeviance.glmmTMB residuals.glmmTMB
Repeated counts of salamanders in streamsSalamanders
helper function to modify simulation settings for random effectsset_simcodes
Extract residual standard deviation or dispersion parametersigma sigma.glmmTMB
Simulate from covariate/metadata in the absence of a real data set (EXPERIMENTAL)simulate_new
Simulate from a glmmTMB fitted modelsimulate.glmmTMB
Spider data from CANOCO, long formatspider_long
Methods for extracting developer-level information from 'glmmTMB' modelsmodel.matrix.glmmTMB terms.glmmTMB
conditionally update glmmTMB object fitted with an old TMB versiongt_load up2date
Calculate Variance-Covariance Matrix for a Fitted glmmTMB modelvcov.glmmTMB
Extract weights from a glmmTMB objectweights.glmmTMB