Skip to contents

Package

drmTMB-package
drmTMB: Distributional Regression Models Using TMB

Model specification

Formula constructors, family objects, and status-marked model syntax.

drm_formula() bf()
Build a drmTMB formula object
meta_V()
Known sampling covariance marker
mi()
Missing-predictor model marker
impute_model()
Define a missing-predictor model
meta_vcov_bivariate()
Build paired bivariate sampling covariance
beta()
Beta response family
zero_one_beta()
Zero-one beta response family
beta_binomial()
Beta-binomial response family
cumulative_logit()
Cumulative logit ordinal response family
categorical()
Unordered categorical missing-predictor family
student()
Student-t response family
skew_normal()
Skew-normal response family
lognormal()
Lognormal response family
tweedie()
Tweedie response family
nbinom2()
Negative binomial 2 response family
truncated_nbinom2()
Zero-truncated negative binomial 2 response family
biv_gaussian()
Bivariate Gaussian response family

Structured-effect markers

Status-marked random-effect scale, structured covariance, and latent-correlation syntax; each reference page separates fitted routes from planned neighbours.

random_effect_scale_formulas sd sd1 sd2 sd_phylo sd_phylo1 sd_phylo2
Random-effect scale formula syntax
animal()
Animal-model structured-effect marker
phylo()
Phylogenetic structured-effect marker
phylo_interaction()
Bipartite phylogenetic interaction marker
spatial()
Spatial structured-effect marker
relmat()
User-supplied relatedness structured-effect marker
corpair()
Latent random-effect correlation formula marker

Deprecated marker internals

Older deprecated formula markers kept out of the main reader path.

meta_known_V()
Deprecated known sampling covariance marker
gr()
Deprecated legacy known-covariance group effect marker

Model fitting and post-fit tools

Fit, diagnose, summarize, predict, and simulate distributional models.

drmTMB()
Fit a distributional regression model with TMB
drm_control()
Control fitting and fitted-object storage
miss_control()
Configure missing-data handling
drm_phylo_penalty()
Penalty / prior specification for a phylogenetic location-scale fit
drm_phylo_penalty_sweep()
Prior-sensitivity sweep for the phylogenetic correlation penalty
check_drm()
Check convergence and diagnostic flags for a drmTMB fit
is_converged()
Check whether a fit converged
confint(<drmTMB>)
Confidence intervals for fitted model parameters
profile_targets()
List confidence-interval targets for a fitted model
profile(<drmTMB>)
Compute profile-likelihood curves for fitted model targets
corpairs()
Extract fitted correlation pairs
fitted(<drmTMB>)
Extract fitted response values
fixef() coef(<drmTMB>)
Extract fixed-effect coefficients
imputed()
Extract fitted missing-predictor summaries
vcov(<drmTMB>) logLik(<drmTMB>) AIC(<drmTMB>) BIC(<drmTMB>) nobs(<drmTMB>) df.residual(<drmTMB>) deviance(<drmTMB>)
Extract standard model-fit quantities
marginal_parameters()
Marginal summaries of predicted distributional parameters
prediction_grid()
Build prediction grids for distributional-parameter summaries
predict_parameters()
Predict distributional parameters in long format
predict(<drmTMB>)
Predict distributional parameters
ranef()
Extract conditional random-effect estimates
residuals(<drmTMB>)
Extract model residuals
rho12()
Extract residual correlation rho12
sigma(<drmTMB>)
Extract fitted scale or dispersion
simulate(<drmTMB>)
Simulate from a fitted model
structured_effects()
Extract structured-effect metadata
summary(<drmTMB>)
Summarize a fitted model
weights(<drmTMB>)
Extract likelihood weights

Distributional outputs and adequacy

A first-class fitted distribution for every family, plus the adequacy diagnostics and centile/exceedance outputs built on it (#747, #748).

fitted_distribution()
Fitted distribution accessor
exceedance()
Exceedance probability from a fitted model
centile_chart()
Model-conditional centile chart
worm_plot()
Worm plot of randomized quantile residuals
qq_plot()
Normal QQ plot of randomized quantile residuals

Future Julia support

Deprecated bridge methods retained for compatibility; the Julia engine and cross-family bivariate fitting are halted/deferred future work.

confint(<drmTMB_julia>)
Inspect legacy interval output from a halted Julia bridge
predict(<drmTMB_julia>)
Predict from a legacy Julia-bridge drmTMB fit
summary(<drmTMB_julia>)
Summarise a legacy Julia-bridge drmTMB fit
rho_latent()
Extract a latent-scale correlation from a legacy Julia-bridge fit

Visualization

Optional plotting helpers for post-fit tables. Exported plotting functions appear here.

plot(<profile.drmTMB>)
Plot profile-likelihood curves
plot_corpairs()
Plot fitted correlation-pair summaries
plot_parameter_surface()
Plot predicted distributional-parameter surfaces