rSPDE (development version)
- Fixed the inlabru mapper for
rspde.spacetime()models whose spatial mesh is ametric_graph.bru_get_mapper()usedbm_fmesher()for the graph, which has nofm_dof()method, sobru()failed with “invalid subscript type ‘list’”. - The optional cgeneric
Makefilenow only uses Homebrewgcc-14on macOS and the compilers R was configured with elsewhere, so compiled installs (RSPDE_COMPILE=1) work on Linux. -
posterior_crossvalidation()is now an S3 generic, with methods forrspde_lmefits and for lists of fitted models. MetricGraph provides thegraph_lmemethod, so the two packages no longer mask each other’s function, and a list can mixrspde_lmeandgraph_lmefits.
rSPDE 2.6.0
CRAN release: 2026-08-31
- Added
posterior_crossvalidation()for objects fitted withrspde_lme(). The function mirrors the interface ofMetricGraph::posterior_crossvalidation. - Added
hybrid.spde(), a new hybrid Whittle-Matern SPDE model with a non-zero deterministic mean. - Added
rspde.hybrid.matern(), a INLA cgeneric model for the hybrid Whittle-Matern SPDE with alpha = 2. - Added a
kappa_muoption that lets the operator applied to the mean use a different range parameter from the one in the covariance. Default (kappa_mu = NULLinhybrid.spde(),separate_kappa_mu = FALSEinrspde.hybrid.matern()) keeps them linked. When enabled,kappa_muis estimated jointly inrspde_lmeand INLA, or can be held fixed viamodel_options$fix_kappa_mu. - The INLA cgeneric models now use the rSPDE models built into INLA when they are available, falling back to the local rSPDE shared library otherwise.
shared_libalso accepts a path to a shared library file. - Added
rspde_safe_inla()andlocal_rspde_safe_inla(), which check that a usable INLA installation is available, for use in examples and tests. -
rspde.metric_graph()now passesshared_libon torspde.matern(), and its default is now"detect", matching the other INLA models. - Updated the inlabru interface to the inlabru 2.14 API. rSPDE now requires
fmesher (>= 0.7.0)and suggestsinlabru (>= 2.14.0). -
predict.rspde_lme()can reuse precomputed parameter-dependent quantities, which speeds up repeated predictions such as in cross-validation. - Fixed
predict.rspde_lme()for models with replicates: the same location in different replicates no longer triggers a duplicated-locations warning. - Fixed
update()for non-stationary models, where newthetavalues were ignored, so predictions from non-stationaryrspde_lme()fits used stale parameters. -
spde.matern.operators()no longer converts a model to a stationary one whenB.tauorB.kappavary in space. - Added a vignette comparing rSPDE with the exact Matern covariance in terms of timing and memory.
rSPDE 2.5.2
CRAN release: 2026-01-26
- Added intrinsic Matern mapper support and related documentation.
- Added
covariance_mesh,cov_function_mesh, andmake_Adocumentation. - Improved intrinsic and fractional operator implementations and stability.
- Updated INLA/inlabru interfaces and examples.
- Expanded unit tests and vignette updates (spacetime/anisotropic/intrinsic).
rSPDE 2.5.1
CRAN release: 2025-03-21
- Added
model_optionsargument torspde_lme()function, which allows users to set starting values for different parameters and also to fix parameters during estimation. - Added
previous_fitargument torspde_lme(), which allows users to provide a previously fitted model as input to obtain starting values for a new fit.
rSPDE 2.5.0
- Improved the
cross_validationfunction to allow for multiple likelihoods. - General adjusts on
rspde.intrinsicfor stability. - inlabru implementation for
rspde.intrinsic. - Improved warning messages when calling inla-related functions.
- Added
wCRPSandswCRPSscores oncross_validation.
rSPDE 2.4.0
CRAN release: 2024-12-02
- Created the
group_predictfunction, to obtain predictions on a testing set based on observations on a training set. - Added support for
stochvol,stochvol.nig,stochvollnandbinomiallikelihoods incross_validationfunction. - Changing the default
nu.upper.boundto 2 in dimension 1, and keeping the defaultnu.upper.boundto 4 in dimension 2 inrspde.matern()function. - Created
matern.rational()operators for creating stationary matern operators. - Created
spacetime.operators()for creating space-time models. - Created
matern2d.operators()for anisotropic operators. - Implemented space-time operators in cgeneric to be used in
INLAandinlabru. - Implemented anisotropic operators in cgeneric to be used in
INLAandinlabru. - Implemented stationary operators in cgeneric to be used in
INLAandinlabru. - Added vignette on space-time models.
- Added vignette on stationary models.
- Added vignette on anisotropic models.
rSPDE 2.3.3
CRAN release: 2023-11-05
- Bugfix on rspde_lme when fitting with fixed smoothness.
- Added a 2d fem interface.
- Moved from using INLA’s mesh functions to fmesher’s mesh functions.
- Removing rgdal from suggests.
- The
dataargument inpredict.rspde_lmehas been changed tonewdata. - Adding
covariance_meshandcov_function_meshmethods as functions in the list returned by objects obtained frommatern.operators()andspde.matern.operators(). - Updated the internal structure to match the updates from the
MetricGraphpackage. - Updated the
cross_validationfunction to match the updates ininlabru. - Added
glanceandaugmentmethods forrspde_lmeobjects.
rSPDE 2.3.2
CRAN release: 2023-07-02
- Small improvement on speed for rspde_lme.
- Bugfix on Q for small values of nu in dimension 1.
- Adding parameterization option for rspde.result.
- Bugfix on which_repl in rspde_lme.
- Addressing issues related to the new version of the Matrix package.
rSPDE 2.3.1
CRAN release: 2023-05-25
- Adding references in DESCRIPTION.
- Changing link to eigen library.
rSPDE 2.3.0
- Fixed a bug on rSPDE.construct.matern.loglike when the parameterization is “matern”.
- Created the rspde_lme() interface, with corresponding standard methods(predict, summary, etc).
- Updated the vignettes to use the rspde_lme() interface instead of the likelihood function factory.
- Replaced chol by Cholesky when using it to compute determinants or to solve systems.
rSPDE 2.2.0
CRAN release: 2023-04-12
- Adding a new parameterization (variance and a range-like parameter)
- Posterior sampling on the predict method.
- Added the
cross_validationfunction which has several scoring rules implemented (MSE, CRPS, SCRPS, DSS) based on ourinlabruimplementation of the rational SPDE approach.
rSPDE 2.1.0
CRAN release: 2023-01-19
- Expanded the parameterization options on matern.operators and spde.matern.operators, along with their associated functions.
- Implementation of the precision method for inla_rspde objects.
- Implementation of the covariance-based spde.matern.operators function and its associated functions.
- Adjusts on the compatibility with the forthcoming MetricGraph package.
rSPDE 2.0.0
- Added cgeneric versions of the nonstationary models
- Added support for metric graphs (depends on the MetricGraph package)
- Added cgeneric versions of the stationary models
- Replaced rgeneric models by their cgeneric counterparts
- Added a new parameterization (range and std. dev)
- Created a new method gg_df to help posterior plotting in ggplot2
rSPDE 1.2.0
CRAN release: 2022-09-16
- Added an inlabru interface
- Added “rational.order” and “rational.type” functions
- Added the BRASIL rational approximation
- Improved covariance-based operator objects
- Improved log-likelihood computation
- Created 2d folded Matern under different boundary conditions
- Implemented different boundary conditions for 1d folded Matern
rSPDE 1.1.0
- Minor typos on vignettes and man pages were corrected
- Some examples were changed to improve their numerical stability
rSPDE 1.0.0
CRAN release: 2021-12-13
- Implementation of the covariance-based rational approximation for stationary Matérn models
- R-INLA implementation of the rational SPDE approach
- Added an introduction to rSPDE vignette
- The previous vignette was updated an became an operator-based rational approximation vignette
- Added a vignette for the R-INLA implementation of the SPDE approach
- Added a vignette to present the rational approximation using the rSPDE package
- Backward compatibility was maintained
