Man pages for hmmTMB
Fit Hidden Markov Models using Template Model Builder

as_character_formulaRead formula with as.character without splitting
as_sparseTransforms matrix to dgTMatrix
bdiag_checkCreate block diagonal matrix (safe version)
check_contiguousCheck values in vector are contiguous
check_smoothsCheck that only supported smooths are used
cov_gridGrid of covariates
cov_grid_2dGrid of covariate values over two covariates
cov_names_in_dataCovariate names that are columns of the data
DistR6 class for probability distribution
dvmDensity function of von Mises distribution
dwrpcauchyDensity function of wrapped Cauchy distribution
find_reFind s(, bs = "re") terms in formula
ForecastR6 Class for Forecast in Hidden Markov Models
gam_shellShell gam object for building prediction matrices
gdeterminantGeneralized matrix determinant
HMMR6 class for hidden Markov model
hmmTMB_colshmmTMB colour palette
hmmTMB-packagehmmTMB: Fit Hidden Markov Models using Template Model Builder
invmlogitMultivarite inverse logit function
is_whole_numberCheck if number of whole number
logLik.HMMlogLik function for SDE objects
logsumexpLog of sum of exponentials
make_covMake covariance matrix from standard deviations and...
make_formulasProcess formulas and store in nested list
make_matricesCreate model matrices
MarkovChainR6 class for HMM hidden process model
mlogitMultivariate logit function
mvnorm_invlinkMultivariate Normal inverse link function
mvnorm_linkMultivariate Normal link function
na_fillFill in NAs
ObservationR6 class for HMM observation model
prec_to_covGet covariance matrix from precision matrix
quad_pos_solveSolve for positive root of quadratic ax^2 + bx + c = 0 when...
rmvn_precSample from a multivariate normal given its precision matrix
rvmSample from von Mises distribution
rwrpcauchySample from wrapped Cauchy distribution
smooth.construct.spde.smooth.specMatern SPDE smooth
spde_extentA length scale for the meshed domain, for starting values
spde_locObservation locations for an SPDE smooth
spde_mesh_1dDefault mesh for a one-dimensional SPDE smooth
strip_commentsStrip comments marked with a hash from a character vector
update.HMMUpdate a model to a new model by changing one formula
hmmTMB documentation built on Nov. 10, 2026, 5:09 p.m.