Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
^\.Rproj\.user$
^figures
^data
^simulations
^simulations
^application
^other_code
^testing
^\.vscode
8 changes: 4 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Package: spiox
Type: Package
Title: Inside-Out Cross-covariance for spatial multivariate data
Version: 0.3
Date: 2024-10-11
Title: Inside-out cross-covariance (IOX) for spatial multivariate data
Version: 0.5
Date: 2024-12-02
Author: Michele Peruzzi
Maintainer: Michele Peruzzi <peruzzi@umich.edu>
Description: Fits Bayesian models for multivariate spatial data using Inside-Out Cross-covariance and Vecchia approximations of GPs.
Description: Fits Bayesian models for multivariate spatial data using IOX and Vecchia approximations of GPs.
License: GPL (>= 2)
Encoding: UTF-8
RoxygenNote: 7.3.1
Expand Down
12 changes: 8 additions & 4 deletions R/RcppExports.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,23 @@ run_spf_model <- function(Y, n_factors, delta_gamma_shape, delta_gamma_rate, dl_
.Call(`_spiox_run_spf_model`, Y, n_factors, delta_gamma_shape, delta_gamma_rate, dl_dirichlet_a, Lambda_start, Delta_start, mcmc, print_every, seq_lambda)
}

spiox_wishart <- function(Y, X, coords, custom_dag, theta_opts, Sigma_start, mvreg_B_start, mcmc = 1000L, print_every = 100L, matern = TRUE, sample_iwish = TRUE, sample_mvr = TRUE, sample_theta_gibbs = TRUE, upd_theta_opts = TRUE, num_threads = 1L) {
spiox_wishart <- function(Y, X, coords, custom_dag, theta_opts, Sigma_start, mvreg_B_start, mcmc = 1000L, print_every = 100L, matern = 1L, sample_iwish = TRUE, sample_mvr = TRUE, sample_theta_gibbs = TRUE, upd_theta_opts = TRUE, num_threads = 1L) {
.Call(`_spiox_spiox_wishart`, Y, X, coords, custom_dag, theta_opts, Sigma_start, mvreg_B_start, mcmc, print_every, matern, sample_iwish, sample_mvr, sample_theta_gibbs, upd_theta_opts, num_threads)
}

spiox_latent <- function(Y, X, coords, custom_dag, theta_opts, Sigma_start, mvreg_B_start, mcmc = 1000L, print_every = 100L, matern = TRUE, sample_iwish = TRUE, sample_mvr = TRUE, sample_theta_gibbs = TRUE, upd_theta_opts = TRUE, num_threads = 1L, sampling = 2L) {
spiox_latent <- function(Y, X, coords, custom_dag, theta_opts, Sigma_start, mvreg_B_start, mcmc = 1000L, print_every = 100L, matern = 1L, sample_iwish = TRUE, sample_mvr = TRUE, sample_theta_gibbs = TRUE, upd_theta_opts = TRUE, num_threads = 1L, sampling = 2L) {
.Call(`_spiox_spiox_latent`, Y, X, coords, custom_dag, theta_opts, Sigma_start, mvreg_B_start, mcmc, print_every, matern, sample_iwish, sample_mvr, sample_theta_gibbs, upd_theta_opts, num_threads, sampling)
}

spiox_predict <- function(X_new, coords_new, Y, X, coords, dag, B, Sigma, theta, matern = TRUE, num_threads = 1L) {
spiox_predict <- function(X_new, coords_new, Y, X, coords, dag, B, Sigma, theta, matern = 1L, num_threads = 1L) {
.Call(`_spiox_spiox_predict`, X_new, coords_new, Y, X, coords, dag, B, Sigma, theta, matern, num_threads)
}

spiox_latent_predict <- function(X_new, coords_new, coords, dag, W, B, Sigma, Dvec, theta, matern = TRUE, num_threads = 1L) {
spiox_predict_part <- function(Y_new, X_new, coords_new, Y, X, coords, dag, B, Sigma, theta, matern = 1L, num_threads = 1L) {
.Call(`_spiox_spiox_predict_part`, Y_new, X_new, coords_new, Y, X, coords, dag, B, Sigma, theta, matern, num_threads)
}

spiox_latent_predict <- function(X_new, coords_new, coords, dag, W, B, Sigma, Dvec, theta, matern = 1L, num_threads = 1L) {
.Call(`_spiox_spiox_latent_predict`, X_new, coords_new, coords, dag, W, B, Sigma, Dvec, theta, matern, num_threads)
}

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Inside-Out Cross-covariance for multivariate Gaussian processes
# Inside-out cross-covariance for multivariate Gaussian processes

![Simulated data from IOX](figures/prior_sample_3.png)
![Simulated data from IOX](https://github.com/mkln/spiox-paper/figures/prior_sample_3.png)

Noise-free trivariate GP using IOX.


![Cross-covariance](figures/cij_plot.png)
![Cross-covariance](https://github.com/mkln/spiox-paper/figures/cij_plot.png)

Cross-covariance between two variables, for varying spatial range (left) or smoothness (right) of one of them relative to the other.

Expand Down
Binary file removed figures/cij_plot.pdf
Binary file not shown.
Binary file removed figures/cij_plot.png
Binary file not shown.
89 changes: 0 additions & 89 deletions figures/cij_plot.r

This file was deleted.

Binary file removed figures/prior_sample_3.png
Binary file not shown.
93 changes: 0 additions & 93 deletions figures/prior_sample_3.r

This file was deleted.

103 changes: 0 additions & 103 deletions figures/prior_sample_3_diff.r

This file was deleted.

Loading
Loading