{
  "_id": "6a23b88b530b9bc726bd811e",
  "Package": "spBPS",
  "Title": "Bayesian Predictive Stacking for Scalable Geospatial Transfer\nLearning",
  "Version": "2.0-1",
  "Authors@R": "c(\nperson(\"Luca\", \"Presicce\", role = c(\"aut\", \"cre\"), email = \"l.presicce@campus.unimib.it\", comment = c(ORCID = \"0009-0005-7062-3523\")),\nperson(\"Sudipto\", \"Banerjee\", role = \"aut\"))",
  "Maintainer": "Luca Presicce <l.presicce@campus.unimib.it>",
  "Author": "Luca Presicce [aut, cre]\n(<https://orcid.org/0009-0005-7062-3523>), Sudipto Banerjee\n[aut]",
  "Description": "Provides functions for Bayesian Predictive Stacking within\nthe Bayesian transfer learning framework for geospatial\nartificial systems, as introduced in \"Bayesian Transfer\nLearning for Artificially Intelligent Geospatial Systems: A\nPredictive Stacking Approach\" (Presicce and Banerjee, 2025)\n<doi:10.48550/arXiv.2410.09504>. This methodology enables\nefficient Bayesian geostatistical modeling, utilizing\npredictive stacking to improve inference across spatial\ndatasets. The core functions leverage 'C++' for\nhigh-performance computation, making the framework well-suited\nfor large-scale spatial data analysis in parallel and\ndistributed computing environments. Designed for scalability,\nit allows seamless application in computationally demanding\nscenarios.",
  "Config/testthat/edition": "3",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "URL": "https://lucapresicce.github.io/spBPS/",
  "Config/pak/sysreqs": "cmake libgmp3-dev make pkg-config libclang-dev",
  "Repository": "https://lucapresicce.r-universe.dev",
  "Date/Publication": "2026-05-07 16:24:47 UTC",
  "RemoteUrl": "https://github.com/lucapresicce/spbps",
  "RemoteRef": "HEAD",
  "RemoteSha": "7881eacb2894b4e203386e7e13a584429683d5a1",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-06-06 05:56:09 UTC",
    "User": "root"
  },
  "MD5sum": "351771abb0cff03f5d30b686737603d5",
  "_user": "lucapresicce",
  "_type": "src",
  "_file": "spBPS_2.0-1.tar.gz",
  "_fileid": "d6049dd8df2b7a669c0ae7684d9302c6a59e510e348adbe7a121db89356b7fac",
  "_filesize": 764189,
  "_sha256": "d6049dd8df2b7a669c0ae7684d9302c6a59e510e348adbe7a121db89356b7fac",
  "_created": "2026-06-06T05:56:09.000Z",
  "_published": "2026-06-06T06:04:59.164Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79855736028,
      "time": 219,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7451775446"
    },
    {
      "job": 79855736047,
      "time": 210,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7451774032"
    },
    {
      "job": 79855736040,
      "time": 206,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7451773963"
    },
    {
      "job": 79855736038,
      "time": 210,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7451774107"
    },
    {
      "job": 79855736072,
      "time": 250,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7451775136"
    },
    {
      "job": 79855736060,
      "time": 340,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7451787953"
    },
    {
      "job": 79855736068,
      "time": 162,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7451766367"
    },
    {
      "job": 79855736080,
      "time": 447,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7451799005"
    },
    {
      "job": 79855424428,
      "time": 307,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7451746934"
    },
    {
      "job": 79855736020,
      "time": 174,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7451769527"
    },
    {
      "job": 79855736024,
      "time": 222,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7451775569"
    },
    {
      "job": 79855736049,
      "time": 193,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7451771858"
    },
    {
      "job": 79855736037,
      "time": 151,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7451766969"
    }
  ],
  "_buildurl": "https://github.com/r-universe/lucapresicce/actions/runs/27054256105",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/lucapresicce/spbps",
  "_commit": {
    "id": "7881eacb2894b4e203386e7e13a584429683d5a1",
    "author": "lucapresicce <l.presicce@campus.unimib.it>",
    "committer": "lucapresicce <l.presicce@campus.unimib.it>",
    "message": "CRAN resubmission v2.0-1\n",
    "time": 1778171087
  },
  "_maintainer": {
    "name": "Luca Presicce",
    "email": "l.presicce@campus.unimib.it",
    "login": "lucapresicce",
    "description": "PhD student in Statistics @unimib\nVisiting researcher @ucla",
    "uuid": 77741338
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 1.8.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "CVXR",
      "version": ">= 1.8.1",
      "role": "Imports"
    },
    {
      "package": "mniw",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "abind",
      "role": "Suggests"
    },
    {
      "package": "mvnfast",
      "role": "Suggests"
    },
    {
      "package": "ECOSolveR",
      "role": "Suggests"
    },
    {
      "package": "foreach",
      "role": "Suggests"
    },
    {
      "package": "parallel",
      "role": "Suggests"
    },
    {
      "package": "doParallel",
      "role": "Suggests"
    },
    {
      "package": "tictoc",
      "role": "Suggests"
    },
    {
      "package": "MBA",
      "role": "Suggests"
    },
    {
      "package": "RColorBrewer",
      "role": "Suggests"
    },
    {
      "package": "classInt",
      "role": "Suggests"
    },
    {
      "package": "sp",
      "role": "Suggests"
    },
    {
      "package": "fields",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "lucapresicce",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2025-48",
      "n": 2
    },
    {
      "week": "2026-12",
      "n": 5
    },
    {
      "week": "2026-19",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v1.0-1",
      "date": "2026-03-19"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "lucapresicce",
      "count": 21,
      "uuid": 77741338
    }
  ],
  "_userbio": {
    "uuid": 77741338,
    "type": "user",
    "name": "Luca Presicce",
    "description": "PhD student in Statistics @UniMiB\r\nVisiting researcher @UCLA"
  },
  "_downloads": {
    "count": 627,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/spBPS"
  },
  "_devurl": "https://github.com/lucapresicce/spbps",
  "_pkgdown": "https://lucapresicce.github.io/spBPS/",
  "_searchresults": 19,
  "_topics": [
    "openblas",
    "cpp",
    "openmp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/spBPS.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/lucapresicce/spbps",
  "_realowner": "lucapresicce",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0-4",
      "date": "2024-10-25"
    },
    {
      "version": "1.0-1",
      "date": "2026-03-19"
    },
    {
      "version": "2.0-1",
      "date": "2026-05-14"
    }
  ],
  "_exports": [
    "bayesMvLMconjugate",
    "pred_bayesMvLMconjugate",
    "spBPS",
    "subset_data"
  ],
  "_help": [
    {
      "page": "arma_dist",
      "title": "Compute the Euclidean distance matrix",
      "topics": [
        "arma_dist"
      ]
    },
    {
      "page": "bayesMvLMconjugate",
      "title": "Gibbs sampler for Conjugate Bayesian Multivariate Linear Models",
      "topics": [
        "bayesMvLMconjugate"
      ]
    },
    {
      "page": "BPS_combine",
      "title": "Combine subset models wiht BPS",
      "topics": [
        "BPS_combine"
      ]
    },
    {
      "page": "BPS_post_MvT",
      "title": "Perform the BPS sampling from posterior and posterior predictive given a set of stacking weights",
      "topics": [
        "BPS_post_MvT"
      ]
    },
    {
      "page": "BPS_postdraws_MvT",
      "title": "Compute the BPS posterior samples given a set of stacking weights",
      "topics": [
        "BPS_postdraws_MvT"
      ]
    },
    {
      "page": "BPS_pred_MvT",
      "title": "Compute the BPS spatial prediction given a set of stacking weights",
      "topics": [
        "BPS_pred_MvT"
      ]
    },
    {
      "page": "BPS_PseudoBMA",
      "title": "Combine subset models wiht Pseudo-BMA",
      "topics": [
        "BPS_PseudoBMA"
      ]
    },
    {
      "page": "BPS_weights_MvT",
      "title": "Compute the BPS weights by convex optimization",
      "topics": [
        "BPS_weights_MvT"
      ]
    },
    {
      "page": "conv_opt",
      "title": "Solver for Bayesian Predictive Stacking of Predictive densities convex optimization problem",
      "topics": [
        "conv_opt"
      ]
    },
    {
      "page": "CVXR_opt",
      "title": "Compute the BPS weights by convex optimization",
      "topics": [
        "CVXR_opt"
      ]
    },
    {
      "page": "d_pred_cpp_MvT",
      "title": "Evaluate the density of a set of unobserved response with respect to the conditional posterior predictive",
      "topics": [
        "d_pred_cpp_MvT"
      ]
    },
    {
      "page": "dens_kcv_MvT",
      "title": "Compute the KCV of the density evaluations for fixed values of the hyperparameters",
      "topics": [
        "dens_kcv_MvT"
      ]
    },
    {
      "page": "dens_loocv_MvT",
      "title": "Compute the LOOCV of the density evaluations for fixed values of the hyperparameters",
      "topics": [
        "dens_loocv_MvT"
      ]
    },
    {
      "page": "expand_grid_cpp",
      "title": "Build a grid from two vector (i.e. equivalent to 'expand.grid()' in 'R')",
      "topics": [
        "expand_grid_cpp"
      ]
    },
    {
      "page": "fit_cpp_MvT",
      "title": "Compute the parameters for the posteriors distribution of beta and Sigma (i.e. updated parameters)",
      "topics": [
        "fit_cpp_MvT"
      ]
    },
    {
      "page": "forceSymmetry_cpp",
      "title": "Function to subset data for meta-analysis",
      "topics": [
        "forceSymmetry_cpp"
      ]
    },
    {
      "page": "models_dens_MvT",
      "title": "Return the CV predictive density evaluations for all the model combinations",
      "topics": [
        "models_dens_MvT"
      ]
    },
    {
      "page": "post_draws_MvT",
      "title": "Sample R draws from the posterior distributions",
      "topics": [
        "post_draws_MvT"
      ]
    },
    {
      "page": "pred_bayesMvLMconjugate",
      "title": "Predictive sampler for Conjugate Bayesian Multivariate Linear Models",
      "topics": [
        "pred_bayesMvLMconjugate"
      ]
    },
    {
      "page": "predict.spBPS",
      "title": "Predict at new locations using a fitted spBPS model",
      "topics": [
        "predict.spBPS"
      ]
    },
    {
      "page": "r_pred_cond_MvT",
      "title": "Draw from the conditional posterior predictive for a set of unobserved covariates",
      "topics": [
        "r_pred_cond_MvT"
      ]
    },
    {
      "page": "r_pred_joint_MvT",
      "title": "Draw from the joint posterior predictive for a set of unobserved covariates",
      "topics": [
        "r_pred_joint_MvT"
      ]
    },
    {
      "page": "r_pred_marg_MvT",
      "title": "Draw from the joint posterior predictive for a set of unobserved covariates",
      "topics": [
        "r_pred_marg_MvT"
      ]
    },
    {
      "page": "sample_index",
      "title": "Function to sample integers (index)",
      "topics": [
        "sample_index"
      ]
    },
    {
      "page": "spBPS",
      "title": "Unified spatial BPS workflow (multivariate path, works for q = 1)",
      "topics": [
        "spBPS"
      ]
    },
    {
      "page": "spBPS_old",
      "title": "Unified spatial BPS workflow (multivariate path, works for q = 1)",
      "topics": [
        "spBPS_old"
      ]
    },
    {
      "page": "subset_data",
      "title": "Function to subset data for meta-analysis",
      "topics": [
        "subset_data"
      ]
    }
  ],
  "_pkglogo": "https://github.com/lucapresicce/spbps/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/lucapresicce/spbps/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "checkmate",
    "clarabel",
    "cli",
    "CVXR",
    "gmp",
    "highs",
    "lattice",
    "Matrix",
    "mniw",
    "osqp",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "S7",
    "scs",
    "slam"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    },
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "openmp",
      "homepage": "http://gcc.gnu.org/",
      "description": "GCC OpenMP (GOMP) support library"
    }
  ],
  "_vignettes": [
    {
      "source": "tutorial.Rmd",
      "filename": "tutorial.html",
      "title": "Double Bayesian Predictive Stacking for Spatial Analysis - Tutotial",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Working packages",
        "Data generation",
        "Setting priors and hyperparameters",
        "Setting dimensions",
        "Double BPS parallel fit",
        "Results collection",
        "Plot results"
      ],
      "created": "2024-10-18 10:29:39",
      "modified": "2026-05-07 16:24:47",
      "commits": 6
    }
  ],
  "_score": 4.931966114728173,
  "_indexed": true,
  "_nocasepkg": "spbps",
  "_universes": [
    "lucapresicce"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.0-1",
      "date": "2026-06-06T05:59:48.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "7881eacb2894b4e203386e7e13a584429683d5a1",
      "fileid": "1ae2976d9705441feb83396132eeb19f4355df62c78aa60b6f72ae76607aea97",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lucapresicce/actions/runs/27054256105"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.0-1",
      "date": "2026-06-06T05:59:37.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "7881eacb2894b4e203386e7e13a584429683d5a1",
      "fileid": "25285b83e055d07bc620a241490a3115c6e2d9529a110a1eedf7d33e11c8bb46",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lucapresicce/actions/runs/27054256105"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.0-1",
      "date": "2026-06-06T05:59:36.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "7881eacb2894b4e203386e7e13a584429683d5a1",
      "fileid": "d3ac895dda311c205e21545c219acb872ae5e51f3764013c9d3e966fac6c5001",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lucapresicce/actions/runs/27054256105"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.0-1",
      "date": "2026-06-06T05:59:35.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "7881eacb2894b4e203386e7e13a584429683d5a1",
      "fileid": "ce09d4c71b9baa6f3fa429a6b54d5bd097e8475cf6e8649a54a84674886c2574",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lucapresicce/actions/runs/27054256105"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.0-1",
      "date": "2026-06-06T05:59:46.000Z",
      "arch": "aarch64",
      "commit": "7881eacb2894b4e203386e7e13a584429683d5a1",
      "fileid": "0acb7366abf10c32953ca108ac57a5b9463c76658dfbe04e576e7cf4a9f3844a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lucapresicce/actions/runs/27054256105"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.0-1",
      "date": "2026-06-06T06:00:58.000Z",
      "arch": "x86_64",
      "commit": "7881eacb2894b4e203386e7e13a584429683d5a1",
      "fileid": "e1e30799a31c20d810b9c05d8b2c8cf9c7c139af520e7768957ff30d54eef8a7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lucapresicce/actions/runs/27054256105"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.0-1",
      "date": "2026-06-06T05:58:55.000Z",
      "arch": "aarch64",
      "commit": "7881eacb2894b4e203386e7e13a584429683d5a1",
      "fileid": "c692baddb417e23a4fce4339d91ff100826918fd904441c4d836522060c5e3f7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lucapresicce/actions/runs/27054256105"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.0-1",
      "date": "2026-06-06T06:01:39.000Z",
      "arch": "x86_64",
      "commit": "7881eacb2894b4e203386e7e13a584429683d5a1",
      "fileid": "3faf02f7d7b7f4e6da3f4051dd539f160a4e9f30792656c9586c5b85f088da50",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lucapresicce/actions/runs/27054256105"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.0-1",
      "date": "2026-06-06T05:59:41.000Z",
      "arch": "emscripten",
      "commit": "7881eacb2894b4e203386e7e13a584429683d5a1",
      "fileid": "6962888a6028b51206e0d2109afa24bef74eddc444d205787aaa49bcc7264385",
      "status": "success",
      "buildurl": "https://github.com/r-universe/lucapresicce/actions/runs/27054256105"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.0-1",
      "date": "2026-06-06T05:58:45.000Z",
      "arch": "x86_64",
      "commit": "7881eacb2894b4e203386e7e13a584429683d5a1",
      "fileid": "9915b7ea6934a29dfdf411474b7afd08f3bd7d7b07f0786b92e3346d060135a4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lucapresicce/actions/runs/27054256105"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.0-1",
      "date": "2026-06-06T05:58:41.000Z",
      "arch": "x86_64",
      "commit": "7881eacb2894b4e203386e7e13a584429683d5a1",
      "fileid": "7a3758d88e90f48d0ff7cc2a3d35101c9e689548f95111e607d9cc4117a11ac8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lucapresicce/actions/runs/27054256105"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.0-1",
      "date": "2026-06-06T05:58:18.000Z",
      "arch": "x86_64",
      "commit": "7881eacb2894b4e203386e7e13a584429683d5a1",
      "fileid": "7eec1eec9af2e0d052bfc38d4e030de51e4eec5077e5ced4b5d4e87ff7852036",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/lucapresicce/actions/runs/27054256105"
    }
  ]
}