Man pages for tulpa
Templated Unified Library for Posterior Approximation in Bayesian Hierarchical Models

adjacencyConstruct a spatial adjacency graph for areal models
agq_fitAdaptive Gauss-Hermite quadrature for one-RE GLMMs
AIC.tulpa_fitInformation criteria on a tulpa fit
as_drawsPosterior draws in the posterior package's format
auto_gridMark an outer-grid setting as a default rather than a pin
auto_grid_placeMay the placement pass move a marked outer-grid axis?
bayes_R2Bayesian R-squared
bridge_samplingBridge sampling for marginal likelihood
categorical_accessorsObservation-level accessors for categorical fits
ccd_gridCentral composite design (CCD) grid for nested-Laplace...
ccd_to_thetaMap standardised CCD coordinates to physical hyperparameters
ccd_weightsCorrected R-INLA CCD integration weights
check_adjacencyValidate a spatial adjacency matrix
check_diagnosticsQuick convergence check
check_modelDiagnostic panel plot
coef.tulpa_fitFixed-effect coefficients
compare_modelsCompare models by information criteria
compute_nngp_neighborsCompute nearest neighbors for NNGP
confint.tulpa_fitCredible intervals for the fixed effects
criteria_doorsDIC, CPO, WAIC and PSIS-LOO on a fit
diagnosticsPosterior diagnostics for a fitted model
diagnostic_summaryComprehensive diagnostic summary
durbin_watsonDurbin-Watson test for temporal autocorrelation
energy_bfmiEnergy Bayesian Fraction of Missing Information (E-BFMI)
family_namesSupported R-level family names
field_effectsSpatial field effects per unit
findbarsFind all bar terms in a formula's parse tree
fit_spdeFit a spatial model using SPDE Laplace approximation
fit_st_nestedFit an additive spatiotemporal GLM by nested Laplace
fitted.tulpa_fitFitted values (population level)
fixefFixed-effect coefficients (lme4-compatible)
geweke_testGeweke convergence test
glance.tulpa_fitModel-level summary statistics (broom-compatible)
hyper_axis_specDescribe one outer-grid hyperparameter axis
imh_laplaceIndependence Metropolis-Hastings with Laplace proposal
inference_mode_infoPrint inference mode information
is_auto_gridIs an outer-grid setting marked as a default?
latentMark an expression as a latent block in a tulpa formula
latent_factorCreate a latent factor specification
latent_factorsExtract latent factor posteriors from fit
logLik.tulpa_fitThe fit's log-scale goodness quantity
malaMetropolis-adjusted Langevin algorithm (MALA)
mcmc_drawsMCMC chain draws from a fit
model_averageModel-averaged predictions
moran_iMoran's I test for spatial autocorrelation in residuals
n_divergentNumber of divergent transitions
nobarsRemove all bar terms from a formula's parse tree
nobs.tulpa_fitNumber of observations in a tulpa fit
node_indexMap cell identifiers to graph node indices
pathfinderPathfinder: variational warm-start via L-BFGS + ELBO scoring
pit_residualsPIT (probability integral transform) residuals
plot_acfPlot autocorrelation functions
plot_diagnosticsDiagnostic plotting functions for tulpa models
plot_divergencesPlot divergent transitions
plot_energyPlot energy diagnostic (E-BFMI)
plot_essPlot effective sample size diagnostic
plot_mapPlot spatial predictions as a map
plot_map_panelPlot multiple maps in a grid
plot_pairsPlot bivariate parameter posteriors (pairs plot)
plot_rhatPlot Rhat convergence diagnostic
plot.tulpa_fitPlot fixed-effect posteriors
plot.tulpa_prior_predictPlot method for tulpa_prior_predict
plot.tulpa_st_summaryPlot method for spatiotemporal effects
plot.tulpa_svc_posteriorPlot method for tulpa_svc_posterior
plot.tulpa_temporal_posteriorPlot method for tulpa_temporal_posterior
plot.tulpa_tvc_posteriorPlot method for tulpa_tvc_posterior
posterior_predictPosterior predictive replicates
posterior_samplePosterior parameter sample from a fit
post_hoc_lmFit a post-hoc linear model on estimated parameters
pp_checkPosterior predictive check
predict.tulpa_fitPredict at new covariate values (population level)
prior_betaBeta prior
prior_exponentialExponential prior
prior_from_specBuild a 'prior' list for 'tulpa_nested_laplace()' from a...
prior_gammaGamma prior
prior_half_cauchyHalf-Cauchy prior
prior_half_normalHalf-normal prior
prior_normalNormal prior
prior_pcPenalized complexity (PC) prior
prior_predictPrior predictive simulation
priors_defaultShow default priors for a tulpa family
ranefRandom-effect summaries
re_cov_pc_lkj_priorPC + LKJ hyperprior for a random-effect covariance
reexportsObjects exported from other packages
residuals.tulpa_fitResiduals from a tulpa fit
rubins_poolPool multiple imputation draws via Rubin's rules
sbcSimulation-based calibration
sbc_predictivePredictive shapes an SBC fitter reports
select_main_paramsSelect the "main" model parameters for diagnostic display
simulate.tulpa_fitSimulate responses from a fitted tulpa model
smooth_effectsExtract fitted covariate smooths
sn_cdfSkew-normal CDF
sn_matchMatch three cumulants to a skew-normal parameterisation
sn_quantileSkew-normal quantile
spatialAreal spatially varying coefficient field
spatial_bym2BYM2 spatial structure
spatial_carCAR / ICAR spatial structure
spatial_car_properProper CAR spatial structure
spatial_gpGaussian process spatial structure (NNGP)
spatial_multiscaleMulti-scale Gaussian process spatial structure
spatial_rangeExtract spatial range and variance from a fitted spatial...
spatial_rsrRestricted spatial regression (RSR)
spatial_spdeSPDE spatial field (Matern via triangular mesh)
spatial_spde_customSPDE spatial field from custom matrices
spatial_svcSpatially varying coefficient structure
spatiotemporalSpatiotemporal interaction specifications for tulpa
spatiotemporal_effectsExtract spatiotemporal effects from fitted model
spatiotemporal_gpNon-separable spatiotemporal GP
summary.tulpa_fitSummarize and print a tulpa fit
svcExtract spatially-varying coefficients from a fitted model
temporalExtract temporal effects from a fitted model
temporal_arAR(p) temporal latent field (general-order autoregressive)
temporal_ar1AR1 temporal structure (first-order autoregressive)
temporal_ar2AR(2) temporal latent field (second-order autoregressive)
temporal_corrExtract temporal correlation parameters from a fitted model
temporal_gpGaussian process temporal structure
temporal_multiscaleMulti-scale temporal structure
temporal_rtrRestricted temporal regression (RTR)
temporal_rw1RW1 temporal structure (first-order random walk)
temporal_rw2RW2 temporal structure (second-order random walk)
temporal_tvcTime-varying coefficient structure
test_dispersionTest for over- or underdispersion
test_outliersTest for outliers (simulation envelope)
test_uniformityTest uniformity of PIT residuals
test_zero_inflationTest for zero inflation
tgmrfUser-defined GMRF latent block
tgmrf_cppUser-defined GMRF latent block, compiled C++ backend
tidy.tulpa_fitTidy fixed-effect table (broom-compatible)
tulpaFit a tulpa model
tulpa_bar_field_replicateReplicate an areal graph across the levels of a factor...
tulpa_bar_field_specsExpand a varying-coefficient bar into per-column field specs
tulpa_batched_pareto_kOuter Pareto-k-hat for a batched-target grid-integrated fit
tulpa_build_model_dataBuild model matrices from a parsed formula
tulpa_cache_clearRemove compiled blocks from the tgmrf_cpp() cache
tulpa_cache_dirDefault cache directory for 'tgmrf_cpp()'-compiled DLLs
tulpa_check_controlValidate a 'control = list()' surface against its canonical...
tulpa_criteriaModel criteria from a pointwise log-likelihood
tulpa_diagnosticsSimulation-based diagnostics for tulpa models
tulpa_draws_arrayPosterior draws as a 3D array
tulpa_ebEmpirical-Bayes random-effect covariances
tulpa_em_laplaceFit a latent-variable model via EM + Laplace approximation
tulpa_em_mcGeneric Monte-Carlo EM driver
tulpa-envvarsEnvironment variables tulpa reads
tulpa_epExpectation-Propagation fit for a GLM
tulpa_familyConstruct a minimal tulpa_family for simulation
tulpa_fit_summaryBuild the summary of a tulpa fit around a coefficient table
tulpa_formulaFormula parsing for tulpa models
tulpa_gaussianFit a Gaussian linear model via tulpa's generic engine
tulpa_gibbsFit via Polya-Gamma Gibbs sampler
tulpa_grid_axisRead a default nested-Laplace outer-grid axis
tulpa_grid_log_quadPer-cell log quadrature weight of an outer grid
tulpa_hyper_check_copy_slabValidate/default a copy-scale slab measure choice
tulpa_hyper_copy_slab_densityThe copy-scale axis's PC-prior density
tulpa_hyper_drawsHyperparameter draws from a nested-Laplace fit
tulpa_hyper_gridOuter hyperparameter-grid integration with a user-supplied...
tulpa_hyper_grid_supportsPer-axis integrated support of an outer grid
tulpa_hyper_slice_homePer-cell refinement tag of an outer grid
tulpa_integratorSelect the symplectic integrator for HMC and NUTS
tulpa_is_spatial_barRecognize an inline varying-coefficient bar
tulpa_iter_progressProgress reporter for a counted R-side fitting loop
tulpa_joint_axis_specs_from_gridRebuild axis specs from an already-assembled outer grid
tulpa_joint_grid_batchFit multiple joint nested-Laplace models through one fused...
tulpa_joint_inner_vcov_blocksPer-cell constrained inverse-precision sub-block for a joint...
tulpa_joint_inner_vcov_mixtureOuter-grid posterior covariance of a joint fit's latent...
tulpa_kfoldK-fold cross-validation for a tulpa fit
tulpa_laplaceFit a model via Laplace approximation
tulpa_laplace_betaFit a beta-regression model via Laplace, estimating the...
tulpa_latentLatent factor specification for unmeasured confounders
tulpa_loglikStreaming pointwise log-likelihood
tulpa_multinomialMultinomial (nominal K-class) logistic regression via Laplace
tulpa_nested_laplaceNested Laplace approximation for latent Gaussian models
tulpa_nested_laplace_jointJoint multi-likelihood nested Laplace approximation
tulpa_normalise_weights_safeNormalise outer-grid log-marginals to posterior cell weights
tulpa_nuts_betaFit a beta-regression model via NUTS (joint sampling of beta...
tulpa_nuts_spdeSample an SPDE GLM via NUTS, optionally jointly over Matern...
tulpa_ordinalOrdinal (ordered K-class) cumulative-logit regression via...
tulpa_outer_gridThe outer hyperparameter grid of a nested-Laplace fit
tulpa-packagetulpa: Templated Unified Library for Posterior Approximation...
tulpa_parse_formulaParse a mixed-model formula
tulpa_pitProbability integral transform from a predictive CDF
tulpa_posterior_drawsPosterior draws from a nested-Laplace fit
tulpa_posterior_draws.tulpa_nested_laplace_jointPosterior draws from a joint nested-Laplace fit
tulpa_powerscale_sensitivityPower-scaling prior / likelihood sensitivity
tulpa_priorsPrior specification for tulpa models
tulpa_profileProfile a fit by solver phase
tulpa_psisPareto-smoothed importance sampling
tulpa_re_aghqAdaptive Gauss-Hermite refinement of a grouped random-effect...
tulpa_re_cov_gibbsGibbs estimation of random-effect covariances (exact-target...
tulpa_re_cov_nestedNested-Laplace integration over random-effect covariances
tulpa_relooSelective refit of high-Pareto-k observations (reloo)
tulpa_rpgDraw Polya-Gamma random variates
tulpa_simulateSimulate data from a tulpa model
tulpa_spatialSpatial structure specifications for tulpa
tulpa_spde_log_hyperpriorSPDE field hyperprior log density on (range, sigma)
tulpa_spde_precision_QRebuild the SPDE/Matern field precision matrix
tulpa_temporalTemporal structure specifications for tulpa
tulpa_tgmrfFit a custom tgmrf latent block
tulpa_theta_matrixA fit's outer grid as a named matrix
tulpa_validatePosterior predictive checks for tulpa models
tulpa_variogramEmpirical semivariogram of residuals
tvcExtract temporally-varying coefficients from a fitted model
validate_gpValidate a GP spatial specification against data
validate_modeValidate that a fit used the expected mode
validate_temporal_multiscaleValidate a multi-scale temporal specification against data
VarCorrRandom-effect variances and correlations
vcov.tulpa_fitVariance-covariance matrix of the fixed effects
wbicWidely applicable Bayesian information criterion (WBIC)
with_tulpa_integratorRun an expression under a chosen symplectic integrator
tulpa documentation built on Oct. 19, 2026, 5:09 p.m.