Package: tulpa 0.7.5

tulpa: Templated Unified Library for Posterior Approximation in Bayesian Hierarchical Models

A general-purpose engine for fitting Bayesian hierarchical models with spatial fields, temporal effects, spatially varying coefficients, and multiple inference backends. Scalable spatial structure includes Hilbert space approximate Gaussian processes (HSGP; Riutort-Mayol et al. 2023 <doi:10.1007/s11222-022-10167-2>), nearest-neighbor Gaussian processes (NNGP; Datta et al. 2016 <doi:10.1080/01621459.2015.1044091>), intrinsic conditional autoregressive models (ICAR; Besag, York, and Mollie 1991 <doi:10.1007/BF00116466>), the reparameterized Besag-York-Mollie model (BYM2; Riebler et al. 2016 <doi:10.1177/0962280216660421>), and stochastic partial differential equation fields (SPDE; Lindgren, Rue, and Lindstrom 2011 <doi:10.1111/j.1467-9868.2011.00777.x>). Temporal structure covers random walks, autoregressive processes, and Gaussian processes. Inference is tiered by correctness guarantee: exact Hamiltonian Monte Carlo with the No-U-Turn sampler, Laplace and nested Laplace approximations with hyperparameter integration (Rue, Martino, and Chopin 2009 <doi:10.1111/j.1467-9868.2008.00700.x>), and variational inference. Model-specific packages plug observation likelihoods into the engine through a templated C++ callback interface.

Authors:Gilles Colling [aut, cre, cph], Frances Y. Kuo [ctb, cph], Stephen Joe [ctb, cph], Arm Limited [cph], The Walnutpie Developers [cph]

tulpa_0.7.5.tar.gz
tulpa_0.7.5.zip(r-4.7-x86_64)tulpa_0.7.5.zip(r-4.7-arm64)tulpa_0.7.5.zip(r-4.6-x86_64)tulpa_0.7.5.zip(r-4.6-arm64)tulpa_0.7.5.zip(r-4.5-x86_64)
tulpa_0.7.5.tgz(r-4.6-x86_64)tulpa_0.7.5.tgz(r-4.6-arm64)tulpa_0.7.5.tgz(r-4.5-x86_64)tulpa_0.7.5.tgz(r-4.5-arm64)
tulpa_0.7.5.tar.gz(r-4.7-arm64)tulpa_0.7.5.tar.gz(r-4.7-x86_64)tulpa_0.7.5.tar.gz(r-4.6-arm64)tulpa_0.7.5.tar.gz(r-4.6-x86_64)
tulpa_0.7.5.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
tulpa/json (API)

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

Bug tracker:https://github.com/gcol33/tulpa/issues

Pkgdown/docs site:https://gillescolling.com

Uses libs:
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library

On CRAN:

Conda:

bayesianhierarchical-modelslaplace-approximationmcmcspatialcppopenmp

7.90 score 2 packages 78 scripts 657 downloads 190 exports 7 dependencies

Last updated from:265a79f2a3. Checks:15 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK863
linux-devel-x86_64OK1014
source / vignettesOK1554
linux-release-arm64OK908
linux-release-x86_64OK1002
macos-release-arm64OK1007
macos-release-x86_64OK2073
macos-oldrel-arm64OK1006
macos-oldrel-x86_64OK1897
windows-devel-arm64OK1245
windows-devel-x86_64OK1161
windows-release-arm64OK1277
windows-release-x86_64OK1494
windows-oldrel-x86_64OK1407
wasm-releaseOK474

Exports:adjacencyagq_fitas_drawsas_draws_arrayas_draws_dfas_draws_matrixas_draws_rvarsauto_gridauto_grid_placebayes_R2bridge_samplingccd_gridccd_to_thetaccd_weightscheck_adjacencycheck_diagnosticscheck_modelcompare_modelscompute_nngp_neighborscpodiagnostic_summarydiagnosticsdicdurbin_watsonenergy_bfmifamily_namesfield_effectsfindbarsfit_spdefit_st_nestedfixefgeweke_testglancehyper_axis_specimh_laplaceinference_mode_infois_auto_gridlatentlatent_factorlatent_factorsmalamcmc_drawsmodel_averagemoran_in_divergentnobarsnode_indexpathfinderpit_residualsplot_acfplot_diagnosticsplot_divergencesplot_energyplot_essplot_mapplot_map_panelplot_pairsplot_rhatpointwise_loglikpost_hoc_lmposterior_predictposterior_samplepp_checkprior_betaprior_exponentialprior_from_specprior_gammaprior_half_cauchyprior_half_normalprior_normalprior_pcprior_predictpriors_defaultranefre_cov_pc_lkj_priorrubins_poolsbcsbc_discretesbc_drawssbc_mixturesbc_normalsbc_rankselect_main_paramssmooth_effectssn_cdfsn_matchsn_quantilespatialspatial_bym2spatial_carspatial_car_properspatial_gpspatial_multiscalespatial_rangespatial_rsrspatial_spdespatial_spde_customspatial_svcspatiotemporalspatiotemporal_effectsspatiotemporal_gpsvctemporaltemporal_artemporal_ar1temporal_ar2temporal_corrtemporal_gptemporal_multiscaletemporal_rtrtemporal_rw1temporal_rw2temporal_tvctest_dispersiontest_outlierstest_uniformitytest_zero_inflationtgmrftgmrf_cpptidytulpatulpa_bar_field_replicatetulpa_bar_field_specstulpa_batched_pareto_ktulpa_build_model_datatulpa_cache_cleartulpa_cache_dirtulpa_check_controltulpa_criteriatulpa_draws_arraytulpa_ebtulpa_em_laplacetulpa_em_mctulpa_eptulpa_familytulpa_fit_summarytulpa_gaussiantulpa_gibbstulpa_grid_axistulpa_grid_log_quadtulpa_hyper_check_copy_slabtulpa_hyper_copy_slab_densitytulpa_hyper_drawstulpa_hyper_gridtulpa_hyper_grid_supportstulpa_hyper_slice_hometulpa_integratortulpa_is_spatial_bartulpa_iter_progresstulpa_joint_axis_specs_from_gridtulpa_joint_grid_batchtulpa_joint_inner_vcov_blockstulpa_joint_inner_vcov_mixturetulpa_kfoldtulpa_laplacetulpa_laplace_betatulpa_logliktulpa_multinomialtulpa_nested_laplacetulpa_nested_laplace_jointtulpa_normalise_weights_safetulpa_nuts_betatulpa_nuts_spdetulpa_ordinaltulpa_outer_gridtulpa_parse_formulatulpa_pittulpa_posterior_drawstulpa_powerscale_sensitivitytulpa_priorstulpa_profiletulpa_psistulpa_re_aghqtulpa_re_cov_gibbstulpa_re_cov_nestedtulpa_relootulpa_rpgtulpa_simulatetulpa_spde_log_hyperpriortulpa_spde_precision_Qtulpa_tgmrftulpa_theta_matrixtulpa_variogramtvcvalidate_gpvalidate_modevalidate_temporal_multiscaleVarCorrwbicwith_tulpa_integrator

Dependencies:genericslatticeMatrixRcppRcppEigenRcppParalleltulpaMesh

Getting started with tulpa
Installation | What tulpa is | A first model | Random effects | Comparing models | Prediction | Other families | Inference modes | Spatial fields | Temporal fields | Priors | Custom latent blocks with tgmrf() | S3 methods | Practical guidance | Where to go next

Last update: 2026-10-12
Started: 2026-05-29

Inference modes: the three tiers and how to choose one
Installation | Why the inference choice matters | The three tiers | How mode = "auto" chooses | The R-callable backends | laplace (Tier 2) | pathfinder (Tier 2) | mala (Tier 1) | imh_laplace (Tier 1) | gibbs (Tier 1) | re_cov_nested and agq (Tier 2) | ep (Tier 2) | Cost versus guarantee | Choosing a mode | See also

Last update: 2026-10-12
Started: 2026-05-29

Random slopes and the free random-effect covariance
Installation | The covariance is the quantity, not a nuisance | Simulate a correlated random-slope data set | Fit: the covariance is integrated, not plugged in | Exact debias for small, low-count groups

Last update: 2026-10-12
Started: 2026-07-17

Reliability of nested approximations: reading the outer Pareto-k
Installation | What the diagnostic is for | A fit to diagnose | What the number means | The boundary moves with the draw count | One k-hat is a noisy reading | Tightening a borderline reading | The reliability ladder | Naming a reliability target | The inner Laplace, scored | See also

Last update: 2026-10-12
Started: 2026-06-19

Spatial fields in tulpa
Installation | Why a spatial field | The model | Simulating data | Fitting | Extracting the field per region | Checking the fit | Interpreting the fit | Prediction | Comparing against a non-spatial fit | Practical guidance | Continuous fields | See also

Last update: 2026-10-12
Started: 2026-05-29

Temporal random-walk effects with tulpa
Installation | Why a temporal field | The model | Simulating data | Fitting | Extracting the temporal trend | Checking the fit | Interpreting the fit | Prediction | Comparing against no temporal field | A second family | Practical guidance | What is wired, and what is not yet | See also

Last update: 2026-10-12
Started: 2026-05-29

User-defined GMRF latent blocks with tgmrf()
Installation | What tgmrf() is | How a block becomes a fitted model: the algorithm | A worked example: periodic AR1 | Simulate from the block | Tier 2 (structured): nested Laplace | Tier 2 (structured): Pathfinder VI | Tier 1 (exact): IMH-Laplace | Tier 1 (exact): NUTS over theta | Comparing posteriors | The mathematics | The GMRF prior | The precision parameterisation | The inner Laplace solve | Outer integration over theta | Convergence | Tuning | Which tier when | How this compares to other latent-block interfaces | What tgmrf() does not require | See also

Last update: 2026-10-12
Started: 2026-05-18

Validating calibration: simulation-based calibration
Installation | What the instrument reads | A model to validate | Reporting a fit in a shape sbc() can read | The prior-predictive experiment | Three reads of the same PIT sample | The proper score, paired | The picture | Calibration conditional on an observed data set | Two premises, and what checks them | Where this sits beside the single-fit band | See also | References

Last update: 2026-10-12
Started: 2026-08-28

Checkpoint and resume long fits
Installation | Why checkpoint | Turn it on | Resume | What the fingerprint protects

Last update: 2026-10-10
Started: 2026-07-17

Comparing tulpa models
Installation | Why compare | Marginal likelihood from a Laplace fit | A nested model ladder | compare_models() | Non-nested candidates | Interpreting logLik differences | Bayes factors and a bridge-sampling cross-check | glance() per model | What WAIC and LOO need | model_average() for prediction | When comparison is not meaningful | Practical guidance | Where to go next

Last update: 2026-10-10
Started: 2026-05-29

EM + Laplace for latent-variable models
Installation | What the driver is for | The two callbacks | Running it, and the bias correction

Last update: 2026-10-10
Started: 2026-07-17

Specifying and checking priors
Installation | Why priors get their own object | Prior families available | Location: the normal prior | Scale: priors for standard deviations | The PC prior | Proportions: the beta prior | What each family is for | Three classes of parameter, three kinds of prior | Default priors | Priors on fixed effects | Prior predictive checks | Choosing priors | Numbers to start from | See also

Last update: 2026-10-10
Started: 2026-05-29

The data a tulpa model expects
Installation | Expected structure | Building from a data frame | Random-effect terms | Binomial denominators and offsets | Validation and errors | See also

Last update: 2026-10-10
Started: 2026-05-29

Readme and manuals

Help Manual

Help pageTopics
Construct a spatial adjacency graph for areal modelsadjacency adjacency.data.frame adjacency.default adjacency.sf adjacency.SpatRaster adjacency.stars print.tulpa_adjacency
Adaptive Gauss-Hermite quadrature for one-RE GLMMsagq_fit
Information criteria on a tulpa fitAIC.tulpa_fit BIC.tulpa_fit
Posterior draws in the posterior package's formatas_draws as_draws.tulpa_fit as_draws_array as_draws_array.tulpa_fit as_draws_df as_draws_df.tulpa_fit as_draws_matrix as_draws_matrix.tulpa_fit as_draws_rvars as_draws_rvars.tulpa_fit
Mark an outer-grid setting as a default rather than a pinauto_grid
May the placement pass move a marked outer-grid axis?auto_grid_place
Bayesian R-squaredbayes_R2 bayes_R2.tulpa_fit
Bridge sampling for marginal likelihoodbridge_sampling
Observation-level accessors for categorical fitscategorical_accessors fitted.tulpa_categorical posterior_predict.tulpa_categorical pp_check.tulpa_categorical predict.tulpa_categorical residuals.tulpa_categorical
Validate a spatial adjacency matrixcheck_adjacency print.tulpa_adjacency_check
Quick convergence checkcheck_diagnostics
Diagnostic panel plotcheck_model check_model.default
Fixed-effect coefficientscoef.tulpa_fit
Compare models by information criteriacompare_models
Credible intervals for the fixed effectsconfint.tulpa_fit
DIC, CPO, WAIC and PSIS-LOO on a fitcpo cpo.default cpo.tulpa_fit criteria_doors dic dic.default dic.tulpa_fit loo.tulpa_fit pointwise_loglik pointwise_loglik.default pointwise_loglik.tulpa_fit waic.tulpa_fit
Comprehensive diagnostic summarydiagnostic_summary print.tulpa_diagnostic_summary
Posterior diagnostics for a fitted modeldiagnostics diagnostics.default diagnostics.sbc print.laplace_diagnostics
Durbin-Watson test for temporal autocorrelationdurbin_watson
Energy Bayesian Fraction of Missing Information (E-BFMI)energy_bfmi
Supported R-level family namesfamily_names
Spatial field effects per unitfield_effects
Fit a spatial model using SPDE Laplace approximationfit_spde
Fit an additive spatiotemporal GLM by nested Laplacefit_st_nested print.tulpa_st_nested
Fitted values (population level)fitted.tulpa_fit
Fixed-effect coefficients (lme4-compatible)fixef fixef.tulpa_fit
Geweke convergence testgeweke_test print.tulpa_geweke
Model-level summary statistics (broom-compatible)glance.tulpa_fit
Independence Metropolis-Hastings with Laplace proposalimh_laplace
Print inference mode informationinference_mode_info
Is an outer-grid setting marked as a default?is_auto_grid
Mark an expression as a latent block in a tulpa formulalatent
Create a latent factor specificationlatent_factor print.tulpa_latent
Extract latent factor posteriors from fitlatent_factors latent_factors.default
The fit's log-scale goodness quantitylogLik.tulpa_fit
Metropolis-adjusted Langevin algorithm (MALA)mala
MCMC chain draws from a fitmcmc_draws
Model-averaged predictionsmodel_average
Moran's I test for spatial autocorrelation in residualsmoran_i
Number of divergent transitionsn_divergent
Number of observations in a tulpa fitnobs.tulpa_fit
Map cell identifiers to graph node indicesnode_index
Pathfinder: variational warm-start via L-BFGS + ELBO scoringpathfinder
PIT (probability integral transform) residualspit_residuals pit_residuals.default
Plot autocorrelation functionsplot_acf
Plot divergent transitionsplot_divergences
Plot energy diagnostic (E-BFMI)plot_energy
Plot effective sample size diagnosticplot_ess
Plot spatial predictions as a mapplot_map
Plot multiple maps in a gridplot_map_panel
Plot bivariate parameter posteriors (pairs plot)plot_pairs
Plot Rhat convergence diagnosticplot_rhat
Plot fixed-effect posteriorsplot.tulpa_fit
Plot method for tulpa_prior_predictplot.tulpa_prior_predict
Plot method for spatiotemporal effectsplot.tulpa_st_summary
Plot method for tulpa_svc_posteriorplot.tulpa_svc_posterior
Plot method for tulpa_temporal_posteriorplot.tulpa_temporal_posterior
Plot method for tulpa_tvc_posteriorplot.tulpa_tvc_posterior
Fit a post-hoc linear model on estimated parameterspost_hoc_lm print.post_hoc_lm
Posterior predictive replicatesposterior_predict posterior_predict.tulpa_fit
Posterior parameter sample from a fitposterior_sample
Posterior predictive checkpp_check pp_check.tulpa_fit
Predict at new covariate values (population level)predict.tulpa_fit
Summarize and print a tulpa fitcoef.summary.tulpa_fit print.summary.tulpa_fit print.tulpa_fit summary.tulpa_fit
Nested Laplace approximation for latent Gaussian modelsprint.tulpa_nested_laplace tulpa_nested_laplace
Joint multi-likelihood nested Laplace approximationprint.tulpa_nested_laplace_joint print.tulpa_nested_laplace_joint_multi tulpa_nested_laplace_joint
Extract temporal effects from a fitted modelprint.tulpa_temporal_field print.tulpa_temporal_field_fit print.tulpa_temporal_posterior print.tulpa_temporal_summary summary.tulpa_temporal_posterior temporal temporal.tulpa_fit
Beta priorprior_beta
Exponential priorprior_exponential
Build a 'prior' list for 'tulpa_nested_laplace()' from a tulpa spec objectprior_from_spec
Gamma priorprior_gamma
Half-Cauchy priorprior_half_cauchy
Half-normal priorprior_half_normal
Normal priorprior_normal
Penalized complexity (PC) priorprior_pc
Prior predictive simulationprint.tulpa_prior_predict prior_predict
Show default priors for a tulpa familypriors_default
Random-effect summariesranef ranef.tulpa_fit
PC + LKJ hyperprior for a random-effect covariancere_cov_pc_lkj_prior
Residuals from a tulpa fitresiduals.tulpa_fit
Pool multiple imputation draws via Rubin's rulesrubins_pool
Simulation-based calibrationplot.sbc print.sbc print.sbc_summary sbc sbc.character sbc.default summary.sbc
Predictive shapes an SBC fitter reportssbc_discrete sbc_draws sbc_mixture sbc_normal sbc_predictive sbc_rank
Select the "main" model parameters for diagnostic displayselect_main_params
Simulate responses from a fitted tulpa modelsimulate.tulpa_fit
Extract fitted covariate smoothssmooth_effects
Areal spatially varying coefficient fieldprint.tulpa_spatial_field print.tulpa_spatial_field_fit spatial
BYM2 spatial structurespatial_bym2
CAR / ICAR spatial structurespatial_car
Proper CAR spatial structurespatial_car_proper
Gaussian process spatial structure (NNGP)print.tulpa_gp print.tulpa_hsgp spatial_gp
Multi-scale Gaussian process spatial structureprint.tulpa_multiscale spatial_multiscale
Extract spatial range and variance from a fitted spatial modelspatial_range
Restricted spatial regression (RSR)print.tulpa_rsr spatial_rsr
SPDE spatial field (Matern via triangular mesh)spatial_spde
SPDE spatial field from custom matricesspatial_spde_custom
Spatially varying coefficient structureprint.tulpa_svc spatial_svc
Spatiotemporal interaction specifications for tulpaspatiotemporal
Extract spatiotemporal effects from fitted modelprint.tulpa_st_summary spatiotemporal_effects spatiotemporal_effects.default
Non-separable spatiotemporal GPspatiotemporal_gp
Extract spatially-varying coefficients from a fitted modelprint.tulpa_svc_posterior print.tulpa_svc_summary summary.tulpa_svc_posterior svc svc.tulpa_fit
AR(p) temporal latent field (general-order autoregressive)print.tulpa_temporal_latent_block temporal_ar
AR1 temporal structure (first-order autoregressive)temporal_ar1
AR(2) temporal latent field (second-order autoregressive)temporal_ar2
Extract temporal correlation parameters from a fitted modeltemporal_corr
Gaussian process temporal structureprint.tulpa_temporal_gp temporal_gp
Multi-scale temporal structureprint.tulpa_temporal_multiscale temporal_multiscale
Restricted temporal regression (RTR)temporal_rtr
RW1 temporal structure (first-order random walk)temporal_rw1
RW2 temporal structure (second-order random walk)temporal_rw2
Time-varying coefficient structureprint.tulpa_tvc temporal_tvc
Test for over- or underdispersiontest_dispersion test_dispersion.default
Test for outliers (simulation envelope)test_outliers test_outliers.default
Test uniformity of PIT residualstest_uniformity
Test for zero inflationtest_zero_inflation test_zero_inflation.default
User-defined GMRF latent blockprint.tgmrf summary.tgmrf tgmrf
User-defined GMRF latent block, compiled C++ backendtgmrf_cpp
Tidy fixed-effect table (broom-compatible)tidy.tulpa_fit
Fit a tulpa modeltulpa
Replicate an areal graph across the levels of a factor (replicated CAR)tulpa_bar_field_replicate
Expand a varying-coefficient bar into per-column field specstulpa_bar_field_specs
Outer Pareto-k-hat for a batched-target grid-integrated fittulpa_batched_pareto_k
Remove compiled blocks from the tgmrf_cpp() cachetulpa_cache_clear
Default cache directory for 'tgmrf_cpp()'-compiled DLLstulpa_cache_dir
Validate a 'control = list()' surface against its canonical key settulpa_check_control
Model criteria from a pointwise log-likelihoodprint.tulpa_criteria tulpa_criteria
Simulation-based diagnostics for tulpa modelstulpa_diagnostics
Posterior draws as a 3D arraytulpa_draws_array
Empirical-Bayes random-effect covariancestulpa_eb
Fit a latent-variable model via EM + Laplace approximationtulpa_em_laplace
Generic Monte-Carlo EM drivertulpa_em_mc
Expectation-Propagation fit for a GLMtulpa_ep
Construct a minimal tulpa_family for simulationprint.tulpa_family tulpa_family
Build the summary of a tulpa fit around a coefficient tabletulpa_fit_summary
Formula parsing for tulpa modelstulpa_formula
Fit a Gaussian linear model via tulpa's generic enginetulpa_gaussian
Fit via Polya-Gamma Gibbs samplertulpa_gibbs
Read a default nested-Laplace outer-grid axistulpa_grid_axis
Per-cell log quadrature weight of an outer gridtulpa_grid_log_quad
Validate/default a copy-scale slab measure choicetulpa_hyper_check_copy_slab
The copy-scale axis's PC-prior densitytulpa_hyper_copy_slab_density
Hyperparameter draws from a nested-Laplace fittulpa_hyper_draws
Outer hyperparameter-grid integration with a user-supplied inner fittulpa_hyper_grid
Per-axis integrated support of an outer gridtulpa_hyper_grid_supports
Per-cell refinement tag of an outer gridtulpa_hyper_slice_home
Select the symplectic integrator for HMC and NUTStulpa_integrator
Recognize an inline varying-coefficient bartulpa_is_spatial_bar
Rebuild axis specs from an already-assembled outer gridtulpa_joint_axis_specs_from_grid
Fit multiple joint nested-Laplace models through one fused grid solvetulpa_joint_grid_batch
Per-cell constrained inverse-precision sub-block for a joint fittulpa_joint_inner_vcov_blocks
Outer-grid posterior covariance of a joint fit's latent coordinatestulpa_joint_inner_vcov_mixture
K-fold cross-validation for a tulpa fittulpa_kfold
Fit a model via Laplace approximationtulpa_laplace
Fit a beta-regression model via Laplace, estimating the precisiontulpa_laplace_beta
Latent factor specification for unmeasured confounderstulpa_latent
Streaming pointwise log-likelihoodtulpa_loglik
Multinomial (nominal K-class) logistic regression via Laplaceprint.tulpa_multinomial tulpa_multinomial
Normalise outer-grid log-marginals to posterior cell weightstulpa_normalise_weights_safe
Fit a beta-regression model via NUTS (joint sampling of beta + log_phi)tulpa_nuts_beta
Sample an SPDE GLM via NUTS, optionally jointly over Matern hyperstulpa_nuts_spde
Ordinal (ordered K-class) cumulative-logit regression via Laplacecoef.tulpa_ordinal print.tulpa_ordinal tulpa_ordinal
The outer hyperparameter grid of a nested-Laplace fittulpa_outer_grid
Parse a mixed-model formulaprint.tulpa_parsed_formula tulpa_parse_formula
Probability integral transform from a predictive CDFtulpa_pit
Posterior draws from a nested-Laplace fittulpa_posterior_draws tulpa_posterior_draws.default tulpa_posterior_draws.tulpa_nested_laplace
Posterior draws from a joint nested-Laplace fittulpa_posterior_draws.tulpa_nested_laplace_joint
Power-scaling prior / likelihood sensitivitytulpa_powerscale_sensitivity
Prior specification for tulpa modelsformat.tulpa_prior format.tulpa_prior_beta format.tulpa_prior_exponential format.tulpa_prior_gamma format.tulpa_prior_half_cauchy format.tulpa_prior_half_normal format.tulpa_prior_normal format.tulpa_prior_pc print.tulpa_prior print.tulpa_priors tulpa_priors
Profile a fit by solver phasetulpa_profile
Pareto-smoothed importance samplingtulpa_psis
Adaptive Gauss-Hermite refinement of a grouped random-effect covariancetulpa_re_aghq
Gibbs estimation of random-effect covariances (exact-target debias)tulpa_re_cov_gibbs
Nested-Laplace integration over random-effect covariancestulpa_re_cov_nested
Selective refit of high-Pareto-k observations (reloo)tulpa_reloo
Draw Polya-Gamma random variatestulpa_rpg
Simulate data from a tulpa modelprint.tulpa_simulate tulpa_simulate
Spatial structure specifications for tulpatulpa_spatial
SPDE field hyperprior log density on (range, sigma)tulpa_spde_log_hyperprior
Rebuild the SPDE/Matern field precision matrixtulpa_spde_precision_Q
Temporal structure specifications for tulpatulpa_temporal
Fit a custom tgmrf latent blocktulpa_tgmrf
A fit's outer grid as a named matrixtulpa_theta_matrix
Posterior predictive checks for tulpa modelstulpa_validate
Empirical semivariogram of residualsplot.tulpa_variogram print.tulpa_variogram tulpa_variogram
Extract temporally-varying coefficients from a fitted modelprint.tulpa_tvc_posterior print.tulpa_tvc_summary summary.tulpa_tvc_posterior tvc tvc.tulpa_fit
Validate a GP spatial specification against datavalidate_gp
Validate that a fit used the expected modevalidate_mode
Validate a multi-scale temporal specification against datavalidate_temporal_multiscale
Random-effect variances and correlationsVarCorr VarCorr.tulpa_fit
Variance-covariance matrix of the fixed effectsvcov.tulpa_fit
Widely applicable Bayesian information criterion (WBIC)print.tulpa_wbic wbic wbic.default wbic.tulpa_fit
Run an expression under a chosen symplectic integratorwith_tulpa_integrator