Package index
Mesh construction
Tools for converting coordinates into UTMs, constructing SPDE meshes prior to model fitting, and adding correlation barriers.
-
add_utm_columns()
get_crs()
- Add UTM coordinates to a data frame
-
make_mesh()
plot(<sdmTMBmesh>)
- Construct an SPDE mesh for sdmTMB
-
add_barrier_mesh()
- Transform a mesh object into a mesh with correlation barriers
-
sdmTMB()
- Fit a spatial or spatiotemporal GLMM with TMB
-
sanity()
- Sanity check of an sdmTMB model
-
tidy(<sdmTMB>)
- Turn sdmTMB model output into a tidy data frame
-
predict(<sdmTMB>)
- Predict from an sdmTMB model
-
residuals(<sdmTMB>)
- Residuals method for sdmTMB models
-
dharma_residuals()
- DHARMa residuals
-
sdmTMBcontrol()
- Optimization control options
-
run_extra_optimization()
experimental - Run extra optimization on an already fitted object
-
replicate_df()
- Replicate a prediction data frame over time
-
set_delta_model()
- Set delta model for
ggeffects::ggpredict()
-
coef(<sdmTMB>)
- Get fixed-effect coefficients
-
Beta()
lognormal()
gengamma()
gamma_mix()
lognormal_mix()
nbinom2_mix()
nbinom2()
nbinom1()
truncated_nbinom2()
truncated_nbinom1()
student()
tweedie()
censored_poisson()
delta_gamma()
delta_gamma_mix()
delta_gengamma()
delta_lognormal()
delta_lognormal_mix()
delta_truncated_nbinom2()
delta_truncated_nbinom1()
delta_poisson_link_gamma()
delta_poisson_link_lognormal()
delta_beta()
- Additional families
-
sdmTMBpriors()
normal()
halfnormal()
mvnormal()
pc_matern()
experimental - Prior distributions
-
plot_pc_matern()
- Plot PC Matérn priors
-
simulate(<sdmTMB>)
- Simulate from a fitted sdmTMB model
-
sdmTMB_simulate()
- Simulate from a spatial/spatiotemporal model
-
project()
experimental - Project from an sdmTMB model using simulation
-
plot_anisotropy()
plot_anisotropy2()
- Plot anisotropy from an sdmTMB model
-
plot_smooth()
- Plot a smooth term from an sdmTMB model
-
plot_pc_matern()
- Plot PC Matérn priors
-
visreg_delta()
visreg2d_delta()
- Plot sdmTMB models with the visreg package
-
sdmTMB_cv()
- Cross validation with sdmTMB models
-
sdmTMB_stacking()
experimental - Perform stacking with log scores on
sdmTMB_cv()
output
-
get_index()
get_cog()
get_eao()
- Extract a relative biomass/abundance index, center of gravity, or effective area occupied
-
get_index_sims()
experimental - Calculate a population index via simulation from the joint precision matrix
Miscellaneous parameter extraction
Functions for calculating effect sizes or extracting parameter samples.
-
Effect.sdmTMB()
- Calculate effects
-
emmeans.sdmTMB
- Estimated marginal means with the emmeans package with sdmTMB
-
spread_sims()
gather_sims()
- Extract parameter simulations from the joint precision matrix