{
  "_id": "6ad0982bcf31981cbb6ef833",
  "Package": "sanba",
  "Type": "Package",
  "Title": "Fitting Shared Atoms Nested Models via MCMC or Variational Bayes",
  "Version": "0.0.4",
  "Authors@R": "c(\nperson(\"Francesco\", \"Denti\", ,\"francescodenti.personal@gmail.com\",\nrole = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0001-5034-7414\")),\nperson(\"Laura\", \"D'Angelo\", ,\"laura.dangelo@live.com\",\nrole = c(\"aut\"),\ncomment = c(ORCID = \"0000-0003-2978-4702\"))\n)",
  "Maintainer": "Francesco Denti <francescodenti.personal@gmail.com>",
  "URL": "https://github.com/fradenti/sanba",
  "BugReports": "https://github.com/fradenti/sanba/issues",
  "Description": "An efficient tool for fitting nested mixture models based\non a shared set of atoms via Markov Chain Monte Carlo and\nvariational inference algorithms. Specifically, the package\nimplements the common atoms model (Denti et al., 2023), its\nfinite version (similar to D'Angelo et al., 2023), and a hybrid\nfinite-infinite model (D'Angelo and Denti, 2026). All models\nimplement univariate nested mixtures with Gaussian kernels\nequipped with a normal-inverse gamma prior distribution on the\nparameters. Additional functions are provided to help analyze\nthe results of the fitting procedure. References: Denti,\nCamerlenghi, Guindani, Mira (2023)\n<doi:10.1080/01621459.2021.1933499>, D’Angelo, Canale, Yu,\nGuindani (2023) <doi:10.1111/biom.13626>, D’Angelo, Denti\n(2026) <doi:10.1214/24-BA1458>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Config/roxygen2/version": "8.0.0",
  "Config/pak/sysreqs": "libclang-dev",
  "Repository": "https://fradenti.r-universe.dev",
  "Date/Publication": "2026-06-17 10:23:34 UTC",
  "RemoteUrl": "https://github.com/fradenti/sanba",
  "RemoteRef": "HEAD",
  "RemoteSha": "7ecd49a961cd86cd74248f9edda309e4251863c8",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-15 08:19:27 UTC",
    "User": "root"
  },
  "Author": "Francesco Denti [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0001-5034-7414>),\nLaura D'Angelo [aut] (ORCID: <https://orcid.org/0000-0003-2978-4702>)",
  "_user": "fradenti",
  "_type": "src",
  "_file": "sanba_0.0.4.tar.gz",
  "_fileid": "https://r2.ropensci.org/007adf9311f8042bcfb166425140516dccb99e39c07f16eb74998315bc0fbaf5",
  "_filesize": 446612,
  "_sha256": "007adf9311f8042bcfb166425140516dccb99e39c07f16eb74998315bc0fbaf5",
  "_expires": "2027-01-23T09:08:58.000Z",
  "_created": "2026-10-15T08:19:27.000Z",
  "_published": "2026-10-15T09:08:59.618Z",
  "_buildurl": "https://github.com/r-universe/fradenti/actions/runs/38704378532",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 116322261674,
      "time": 200,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11957663182"
    },
    {
      "job": 116322261500,
      "time": 273,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11958057732"
    },
    {
      "job": 116322261774,
      "time": 181,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11957877882"
    },
    {
      "job": 116322261527,
      "time": 197,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11958595697"
    },
    {
      "job": 116322261686,
      "time": 160,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11961030217"
    },
    {
      "job": 116322261562,
      "time": 412,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11957928559"
    },
    {
      "job": 116322261515,
      "time": 150,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11959958487"
    },
    {
      "job": 116322261615,
      "time": 315,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11957603632"
    },
    {
      "job": 116320163348,
      "time": 315,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11957617692"
    },
    {
      "job": 116322261560,
      "time": 190,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11958286121"
    },
    {
      "job": 116322261662,
      "time": 329,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11958102109"
    },
    {
      "job": 116322261621,
      "time": 196,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11958166419"
    },
    {
      "job": 116322261700,
      "time": 174,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11958475770"
    },
    {
      "job": 116322261599,
      "time": 318,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11958266604"
    },
    {
      "job": 116322261425,
      "time": 259,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11957763131"
    }
  ],
  "_upstream": "https://github.com/fradenti/sanba",
  "_commit": {
    "id": "7ecd49a961cd86cd74248f9edda309e4251863c8",
    "author": "Francesco Denti <francescodenti.personal@gmail.com>",
    "committer": "Francesco Denti <francescodenti.personal@gmail.com>",
    "message": "Update CRAN-SUBMISSION\n",
    "time": 1781691814
  },
  "_maintainer": {
    "name": "Francesco Denti",
    "email": "francescodenti.personal@gmail.com",
    "login": "fradenti",
    "description": "Assistant Professor (RtdB) @ University of Padua",
    "uuid": 29864961,
    "orcid": "0000-0001-5034-7414"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "RcppProgress",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "matrixStats",
      "role": "Imports"
    },
    {
      "package": "salso",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "RColorBrewer",
      "role": "Imports"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    }
  ],
  "_owner": "fradenti",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-23",
      "n": 2
    },
    {
      "week": "2026-24",
      "n": 5
    },
    {
      "week": "2026-25",
      "n": 4
    }
  ],
  "_tags": [
    {
      "name": "v0.0.4",
      "date": "2026-06-15"
    }
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "fradenti",
      "count": 39,
      "uuid": 29864961
    },
    {
      "user": "laura-dangelo",
      "count": 8,
      "uuid": 29673036
    },
    {
      "user": "eddelbuettel",
      "count": 1,
      "uuid": 673121
    }
  ],
  "_userbio": {
    "uuid": 29864961,
    "type": "user",
    "name": "Francesco Denti",
    "followers": 30,
    "description": "Assistant Professor (RtdB) @ University of Padua"
  },
  "_downloads": {
    "count": 204,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/sanba"
  },
  "_devurl": "https://github.com/fradenti/sanba",
  "_searchresults": 2,
  "_topics": [
    "openblas",
    "cpp",
    "openmp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/sanba.html",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/fradenti/sanba",
  "_realowner": "fradenti",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.1",
      "date": "2025-05-27"
    },
    {
      "version": "0.0.2",
      "date": "2025-08-01"
    },
    {
      "version": "0.0.3",
      "date": "2025-09-24"
    },
    {
      "version": "0.0.4",
      "date": "2026-06-15"
    }
  ],
  "_exports": [
    "compute_postdens",
    "compute_psm",
    "estimate_G",
    "estimate_partition",
    "fit_CAM",
    "fit_fiSAN",
    "fit_fSAN",
    "get_model",
    "get_params",
    "get_seed_best_run",
    "get_sim",
    "get_time",
    "number_clusters",
    "plot_vi_allocation_prob"
  ],
  "_help": [
    {
      "page": "compute_postdens",
      "title": "Compute the Posterior Density for a Group",
      "topics": [
        "compute_postdens"
      ]
    },
    {
      "page": "compute_psm",
      "title": "Compute and Plot the Posterior Similarity Matrix",
      "topics": [
        "compute_psm"
      ]
    },
    {
      "page": "estimate_G",
      "title": "Estimate the Atoms and Weights of the Discrete Mixing Distributions",
      "topics": [
        "estimate_G",
        "plot.SANvi_G",
        "print.SANvi_G",
        "summary.SANvi_G"
      ]
    },
    {
      "page": "estimate_partition",
      "title": "Estimate the Observational and Distributional Partition",
      "topics": [
        "estimate_partition",
        "estimate_partition.SANmcmc",
        "estimate_partition.SANvi",
        "plot.partition_mcmc",
        "plot.partition_vi",
        "print.partition_mcmc",
        "print.partition_vi",
        "summary.partition_mcmc",
        "summary.partition_vi"
      ]
    },
    {
      "page": "fit_CAM",
      "title": "Fit the Common Atoms Mixture Model",
      "topics": [
        "fit_CAM"
      ]
    },
    {
      "page": "fit_fiSAN",
      "title": "Fit the Finite-Infinite Shared Atoms Mixture Model",
      "topics": [
        "fit_fiSAN"
      ]
    },
    {
      "page": "fit_fSAN",
      "title": "Fit the Finite Shared Atoms Mixture Model",
      "topics": [
        "fit_fSAN"
      ]
    },
    {
      "page": "get_accessors",
      "title": "Accessor Functions for SAN Model Outputs",
      "topics": [
        "get_model",
        "get_model.SANmcmc",
        "get_model.SANvi",
        "get_params",
        "get_params.SANmcmc",
        "get_params.SANvi",
        "get_seed_best_run",
        "get_seed_best_run.SANvi",
        "get_sim",
        "get_sim.SANmcmc",
        "get_sim.SANvi",
        "get_time",
        "get_time.SANmcmc",
        "get_time.SANvi"
      ]
    },
    {
      "page": "number_clusters",
      "title": "Estimate the Number of Observational and Distributional Clusters",
      "topics": [
        "number_clusters"
      ]
    },
    {
      "page": "plot_vi_allocation_prob",
      "title": "Plot Variational Cluster Allocation Probabilities",
      "topics": [
        "plot_vi_allocation_prob"
      ]
    },
    {
      "page": "plot.SANmcmc",
      "title": "Visual Check of the Convergence of the MCMC Output",
      "topics": [
        "plot.SANmcmc"
      ]
    },
    {
      "page": "plot.SANmcmc_postdens",
      "title": "Plot Posterior Density Samples",
      "topics": [
        "plot.SANmcmc_postdens"
      ]
    },
    {
      "page": "plot.SANvi",
      "title": "Visual Check of the Convergence of the VI Output",
      "topics": [
        "plot.SANvi"
      ]
    },
    {
      "page": "print.SANmcmc",
      "title": "Print the MCMC Output",
      "topics": [
        "print.SANmcmc"
      ]
    },
    {
      "page": "print.SANvi",
      "title": "Print the Variational Inference Output",
      "topics": [
        "print.SANvi"
      ]
    },
    {
      "page": "summary.SANmcmc",
      "title": "Summarize the MCMC Output",
      "topics": [
        "summary.SANmcmc"
      ]
    },
    {
      "page": "summary.SANvi",
      "title": "Summarize the Variational Inference Output",
      "topics": [
        "summary.SANvi"
      ]
    }
  ],
  "_readme": "https://github.com/fradenti/sanba/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "farver",
    "glue",
    "labeling",
    "lifecycle",
    "matrixStats",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppProgress",
    "rlang",
    "salso",
    "scales",
    "viridisLite"
  ],
  "_sysdeps": [
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.32+ds-5",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    },
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "openmp",
      "homepage": "http://gcc.gnu.org/",
      "description": "GCC OpenMP (GOMP) support library"
    }
  ],
  "_score": 3.4771212547196626,
  "_indexed": true,
  "_nocasepkg": "sanba",
  "_universes": [
    "fradenti"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.4",
      "date": "2026-10-15T08:22:53.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "7ecd49a961cd86cd74248f9edda309e4251863c8",
      "fileid": "https://r2.ropensci.org/280d5d9403e6aba30478385f8da4323e3e23bdff5002735d27e3abd1063e927c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fradenti/actions/runs/38704378532"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.4",
      "date": "2026-10-15T08:24:15.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "7ecd49a961cd86cd74248f9edda309e4251863c8",
      "fileid": "https://r2.ropensci.org/13f14ab7c9de15812d81eafcafd73562d4264ca407ab746bc2113f4f87b2584a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fradenti/actions/runs/38704378532"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.4",
      "date": "2026-10-15T08:22:50.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "7ecd49a961cd86cd74248f9edda309e4251863c8",
      "fileid": "https://r2.ropensci.org/561b56cbb5c815590dd10c7af7640c80b08423cbbf82a981315ec4fe9ad8cf7a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fradenti/actions/runs/38704378532"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.4",
      "date": "2026-10-15T08:22:48.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "7ecd49a961cd86cd74248f9edda309e4251863c8",
      "fileid": "https://r2.ropensci.org/9aa6952b77f714e9691ba9a01ffbe28924686327b17f6d96b3192859af1228f8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fradenti/actions/runs/38704378532"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.4",
      "date": "2026-10-15T09:07:26.000Z",
      "arch": "aarch64",
      "commit": "7ecd49a961cd86cd74248f9edda309e4251863c8",
      "fileid": "https://r2.ropensci.org/ed738ae22fa8313c1a51946d268dddfd9aee981ef6fc3efa311011802ff7a606",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fradenti/actions/runs/38704378532"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.4",
      "date": "2026-10-15T08:24:57.000Z",
      "arch": "x86_64",
      "commit": "7ecd49a961cd86cd74248f9edda309e4251863c8",
      "fileid": "https://r2.ropensci.org/34772693281398ce7107373f4a39aca78c1376e0e21704ed5512b85a07f7f275",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fradenti/actions/runs/38704378532"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.4",
      "date": "2026-10-15T09:02:53.000Z",
      "arch": "aarch64",
      "commit": "7ecd49a961cd86cd74248f9edda309e4251863c8",
      "fileid": "https://r2.ropensci.org/48e9e966fe2df64f0b21643a0693f23145a292f3c8d2b9c3d53f23897d19a84e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fradenti/actions/runs/38704378532"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.4",
      "date": "2026-10-15T08:24:01.000Z",
      "arch": "x86_64",
      "commit": "7ecd49a961cd86cd74248f9edda309e4251863c8",
      "fileid": "https://r2.ropensci.org/74e02b1fe33dc0c422740f20cec05c1ae97b21f6130d0785c896f7566eebf421",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fradenti/actions/runs/38704378532"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.4",
      "date": "2026-10-15T08:23:01.000Z",
      "arch": "emscripten",
      "commit": "7ecd49a961cd86cd74248f9edda309e4251863c8",
      "fileid": "https://r2.ropensci.org/35304b8fffd9b3a5564318a47af4260bbd6a77908d0eac19bbc7687e6db7d298",
      "status": "success",
      "buildurl": "https://github.com/r-universe/fradenti/actions/runs/38704378532"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.4",
      "date": "2026-10-15T08:24:26.000Z",
      "arch": "aarch64",
      "commit": "7ecd49a961cd86cd74248f9edda309e4251863c8",
      "fileid": "https://r2.ropensci.org/d262da5b0710ede09741bae5e74a540bffdb9a99daec58623f89cfd41e13b792",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fradenti/actions/runs/38704378532"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.4",
      "date": "2026-10-15T08:21:50.000Z",
      "arch": "x86_64",
      "commit": "7ecd49a961cd86cd74248f9edda309e4251863c8",
      "fileid": "https://r2.ropensci.org/f40491461a93d2b086a69e37eb9c8a56295246cf564cb4fad326430cff46f2b3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fradenti/actions/runs/38704378532"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.4",
      "date": "2026-10-15T08:22:16.000Z",
      "arch": "x86_64",
      "commit": "7ecd49a961cd86cd74248f9edda309e4251863c8",
      "fileid": "https://r2.ropensci.org/b1d8e206d1aa1e878997cebb310804136094c6427ccd90e9d55c930766e24692",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fradenti/actions/runs/38704378532"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.4",
      "date": "2026-10-15T08:24:15.000Z",
      "arch": "aarch64",
      "commit": "7ecd49a961cd86cd74248f9edda309e4251863c8",
      "fileid": "https://r2.ropensci.org/cd013d21e57829df062c3ed6b873fb723f034db4273d1236fe341d448caff255",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fradenti/actions/runs/38704378532"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.4",
      "date": "2026-10-15T08:22:08.000Z",
      "arch": "x86_64",
      "commit": "7ecd49a961cd86cd74248f9edda309e4251863c8",
      "fileid": "https://r2.ropensci.org/78e7571e41316cc2855054edf71f14cafb780f7835ea124a76ab56d1bc82e15a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fradenti/actions/runs/38704378532"
    }
  ]
}