run_abrm(): the norm_idx_x, pois_idx_x, binom_idx_x, norm_idx_y,
pois_idx_y, binom_idx_y arguments are replaced by x_types and
y_types, character vectors with one element per covariate taking values
"norm", "pois" or "binom". The old arguments still work but are
deprecated (with a warning).run_abrm(): dist_y is now a string ("norm", "pois" or "binom").
Numeric codes 1/2/3 still work but are deprecated.plot.misaligned_data() and plot.abrm() now return ggplot objects
instead of printing and invisibly returning the input.plot.abrm() gains a type argument ("trace" or "density") and draws
one kind of plot; see the new plot_trace() and plot_density().
Diagnostic ggplot objects are no longer stored inside the fitted object.coef(), vcov() and confint() now consistently label coefficients with
covariate names, and the intercept as "intercept".raster, MASS and reshape2 are no
longer dependencies.gen_correlated_spat() uses a different (Cholesky-based) sampler, so
simulated data for a given seed differ from earlier versions.run_abrm() gains x_vars,
y_vars, outcome, atom_vars, id_x, id_y, atom_id_x, atom_id_y
and population arguments. IDs may be character (e.g. GEOIDs). The old
covariate_x_1, ... naming remains the default.create_atoms() builds atoms with sf::st_intersection();
simulate_misaligned_data() uses it instead of raster::intersect().mcmc_diagnostics() accessor for R-hat and effective sample sizes.gen_correlated_spat() now uses var_spat and verify, accepts a full
correlation matrix, validates its inputs, and avoids inverting the
Kronecker-product precision matrix.abrm_params() constructor for the true_params argument of
run_abrm(). It validates its inputs, vectors can be unnamed (matched by
position) or named (matched by covariate name), and atom-level coefficients
(beta_a) are supported. simulate_misaligned_data() now returns its
true_params as an abrm_params object. The format is documented in
?abrm_params and ?run_abrm.plot(x, which = "atoms") errors informatively when atoms are missing.create_atoms() stores whole-number numeric IDs as integers
(IDs too large for an integer, such as 11-digit GEOIDs, and character IDs
are left unchanged), and run_abrm() no longer requires numeric IDs: any
unique IDs are matched and mapped to integer indices internally.data-raw/vignette_cache.R and test_0.2.9.R use the new
interface.biasedUrn_dmfnc() is exported so models with binomial variables work
from an installed package (previously only under devtools::load_all()).NA.parameter_estimates when
true_params was supplied; they are now always included.|> replaces %>% throughout.This is a resubmission (v0.2.7) addressing reviewer comments on package quality, documentation, and replication material. Changes include:
ID/ID.1 after raster::intersect()) and newer sf >= 1.0 (which
produces ID_1/ID_2). Affected simulate_misaligned_data() and
the case example vignette (#issue number if you have one).\examples{} blocks to all exported functions; slow MCMC-based functions
use \dontrun{} while lightweight functions (e.g., simulate_misaligned_data(),
get_abrm_model(), gen_correlated_spat(), and all S3 methods for
misaligned_data) now have fully executable examplesvcov.abrm example from \dontrun{} to \donttest{} per CRAN policy for examples that are valid but too slow for routine checkingrun_abrm() silently writing a PDF to the user's working directory:
changed default of save_plots from TRUE to FALSE; diagnostic plots are
now obtained explicitly via plot() on the returned objectplot.misaligned_data() S3 method for spatial data explorationcoef.abrm(), confint.abrm(), fitted.abrm(), waic.abrm(), print.waic_abrm() S3 methods to improve model result inspection without accessing internal object structure directlyeval = TRUE for all simulated-data (Example 1)
code chunks so the vignette executes and displays output during buildlibrary(nimble) call from vignette (nimble is already
loaded as a dependency of spatialAtomizeR)0 errors ✔ | 0 warnings ✔ | 0 notes ✔
There are currently no downstream dependencies for this package.
print() statement causing debug output in console@keywords internal (no longer exported)