tinyVAST 1.3.0
CRAN release: 2025-09-13
- Adding
add_vertex_covariates
to associate mesh vertices with covariates (hean Anderson) - Adding option for covariate-based anisotropy using
vertex_formula
, while also allowing geometric anisotropy. - Adding option for barriers using
triangle_formula
which permits an offset for barrier covariates - Adding
spatial_cor
to use sparse matrices to compute the correlation between acoord
andpred
coordinates, e.g. to visualize covariate-based anisotropy - Fix
make_eof_ram
to work as intended for multivariate models, e.g., having a separate response map and shared indices across variables (previously had a shared response map and shared indices, i.e., collapsed to univariate model) - Fix bug arising in
predict
whenspatial_varying
involved a column ofnewdata
that was expecting a factor, but provided acharacter-vector
. Now coercers to factors using the levels of the originaldata
(same behavior as forformula
) - Export
fit$rep$negloglik_i
as log-likelihood for each datum, for use in calculating out-of-sample predictive score - Turn off SE reporting during index calculations (as speedup), and allow SE reporting for
mu_g
inpredict
- Fix bug arising in
project
whenspatial_varying
was specified - Adding web-only vignette showing predator-expanded diet estimator using joint model of specific stomach contents and predator density
- Fix bug arising when using
weights
argument using family ofdelta_gamma
ordelta_lognormal
, where this bug was introduced in release 1.2.0 (h/t Peri Gerson for identifying the issue) - Add vignette showing
project
function - Add a web-only vignette showing the sponge-coral-fish case study to illustrate spatial structural modelling
tinyVAST 1.2.0
CRAN release: 2025-07-19
- Adding a new spatial domain using
sf::st_make_grid
- Adding option for geometric anisotropy when using
sf::st_make_grid
- Fix bug in deviance for lognormal distribution in delta models (h/t Sean Anderson for finding it)
- Change family = “binomial” to use
weights
as number of Binomial trials N - Fix
deviance_explained
to work with non-defaultweights
argument - Add
fit$internal$packageVersion
to allowpredict
,cAIC
etc to check and throw error if there’s a package inconsistency between object and installed package - Add
conditional_gmrf
to do conditional simulations from a GMRF - Add
project
to project tinyVAST forward in time - Eliminate
...
argument totinyVAST
so that it’s obvious if an argument is mis-named. - Fix bug which previously resulted in non-converged models, where including DSEM arrow “x<->x, 0, sd_xy” would improperly add another term “x <-> x, 0, V[x]” because it didn’t previously parse the whitespaces when detecting missing covariances (h/t Jon Reum for flagging the issue)
tinyVAST 1.1.1
CRAN release: 2025-05-07
- Adding option for geometric anisotropy when using the SPDE method
- For some reason, the CPP edits also address an error message during
devtools::check_win_devel
“array subscript ’const __m128i[0]’ is partly outside array bounds of ‘unsigned char [12]’”
tinyVAST 1.1.0
CRAN release: 2025-05-03
- Adding
term_covariance
to calculate the covariance among variables for SEM term, or covariance among variables-and-lags for DSEM terms - Adding Restricted Spatial Regression estimator for covariates
alphaprime_j
andalphaprime2_j
tofit$rep
output. - Adding methods to allow use of
cv
to calculate crossvalidation skill - Add
bias.correct
option to predict (but still no flag for SEs for anything except p_i) - Switch
sample_variable
from usingobj$env$MC
toobj$env$spHess(random=TRUE)
which seems more stable as dependency - Add functionality for
te
andti
splines, although they remain poorly tested - Add error check to
sfnetwork_mesh
to detect if the stream network is not ordered as a tree - Improve stream network vignette to use matrix notation for joint precision, and modify
simulate_sfnetwork
to use that - Change
tinyVAST.cpp
to use matrix notation constructor and fix bug in previous constructor where the covariance between first and second nodes was not right - Expand
test-sfnetworks.R
integrated test to confirm that matrix-notation precision constructor is identical to the inverse of Ornstein-Uhlenbeck covariance as intended.
tinyVAST 1.0.1
CRAN release: 2025-03-21
- Modify examples for
simulate.tinyVAST
andsample_variable
to try to avoid terminal output giving error in valgrind check - Add
ivector_minus_one
function to satisfy clang-UBSAN - Swap
GMRF(Q).Quadform(x)
tox.matrix().transpose() * (Q * x.matrix())
to avoid calculating log-determinant ofQ
in the smoothers penalty, to avoid valgrind errors - Add tinyVASTcontrol option that suppresses nlminb warning messages by default, which are typically not informative to casual users
tinyVAST 1.0.0
CRAN release: 2025-03-13
- Adding nbinom1 and nbinom2 families
- Simplify argument names, by changing
sem
tospace_term
,dsem
tospacetime_term
andspatial_graph
tospatial_domain
, and eliminatingdelta_
in the names for arguments todelta_options
- Add
time_term
to allow time-variable interaction (e.g., AR1 intercepts) - Adding overview and model-description vignettes
- Add
simulate
S3 generic
tinyVAST 0.7.1
- Fixed bug (wrong output) when using
predict(fit, what="mu_g")
and a Poisson-linked delta model - Fixed bug (cryptic error message) when using
integrate_output
- Add
cAIC
(but disabling EDF calculation for now)
tinyVAST 0.7.0
- Adding option for spatially-varying-coefficient (SVC) models
- Add error-check for when
data
has a factor with extra levels, which conflicted with the logic of adding allorigdata
levels tonewdata
when callingpredict
, and hence caused an uniformative error previously
tinyVAST 0.6.0
- Change
integrate_output
interface by splittingW_gz
andV_gz
into four vectorsarea
,type
,covariate
, andweighting_index
to simplify documentations and improve naming - Fix bug where cloglog and logit links were not previously implemented for use in
predict
andintegrate_output
tinyVAST 0.5.0
- Adding vignette showing how to fit multiple data types in an SDM
- Adding
deviance_explained
and calculating this by default