{
  "_id": "6ae079e94d02104fb3ec0857",
  "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",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-27 10:08:31 UTC",
    "User": "root"
  },
  "Author": "Francesco Denti [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0001-5034-7414>), Laura D'Angelo [aut]\n(ORCID: <https://orcid.org/0000-0003-2978-4702>)",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-06-15 19:10:57 UTC",
  "RemoteUrl": "https://github.com/cran/sanba",
  "RemoteRef": "HEAD",
  "RemoteSha": "4cc88e2ef620ff8ec64131bd32a4a140be8f6482",
  "_user": "cran",
  "_type": "src",
  "_file": "sanba_0.0.4.tar.gz",
  "_fileid": "https://r2.ropensci.org/e1eead86275ad4c60a2b0316d102838511bc87bec784a7c968a2724bafa046dc",
  "_filesize": 447819,
  "_sha256": "e1eead86275ad4c60a2b0316d102838511bc87bec784a7c968a2724bafa046dc",
  "_expires": "2027-02-04T10:16:07.000Z",
  "_created": "2026-10-27T10:08:31.000Z",
  "_published": "2026-10-27T10:16:09.005Z",
  "_upstream": "https://github.com/cran/sanba",
  "_status": "success",
  "_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"
  },
  "_jobs": [
    {
      "job": 122128946876,
      "time": 168,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12725401962"
    },
    {
      "job": 122128946853,
      "time": 166,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12724688890"
    },
    {
      "job": 122128946810,
      "time": 166,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12725751037"
    },
    {
      "job": 122128946996,
      "time": 182,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12725521707"
    },
    {
      "job": 122127302896,
      "time": 225,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12725238109"
    },
    {
      "job": 122128946839,
      "time": 172,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12725317102"
    },
    {
      "job": 122128946838,
      "time": 365,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12725254158"
    },
    {
      "job": 122128946951,
      "time": 274,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12725307551"
    },
    {
      "job": 122128947024,
      "time": 318,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12724998526"
    },
    {
      "job": 122128946911,
      "time": 198,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12725576793"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/40485798925",
  "_commit": {
    "id": "4cc88e2ef620ff8ec64131bd32a4a140be8f6482",
    "author": "Francesco Denti <francescodenti.personal@gmail.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.0.4\n",
    "time": 1781550657
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-25",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.0.4",
      "date": "2026-06-15"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "fradenti",
      "count": 4,
      "uuid": 29864961
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 634,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 191,
    "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": false,
  "_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/cran/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": 1.6989700043360187,
  "_indexed": false,
  "_nocasepkg": "sanba",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://fradenti.r-universe.dev/sanba",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.4",
      "date": "2026-10-27T10:10:59.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "4cc88e2ef620ff8ec64131bd32a4a140be8f6482",
      "fileid": "https://r2.ropensci.org/4af185b1b7735ec6ae2314975e1bd3913ff096644a6f96f088b6c6abd00d0a3a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40485798925"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.4",
      "date": "2026-10-27T10:11:11.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "4cc88e2ef620ff8ec64131bd32a4a140be8f6482",
      "fileid": "https://r2.ropensci.org/9ab71722484506e664d0cf8146344d6e315972a252655b8839c333a2dba80895",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40485798925"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.4",
      "date": "2026-10-27T10:10:59.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "4cc88e2ef620ff8ec64131bd32a4a140be8f6482",
      "fileid": "https://r2.ropensci.org/a734fbde52231308ca79909723619fcc9c8ca9dafc5d7c4442ca98c70db72b93",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40485798925"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.4",
      "date": "2026-10-27T10:11:08.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "4cc88e2ef620ff8ec64131bd32a4a140be8f6482",
      "fileid": "https://r2.ropensci.org/3d8dcda44157cced0fa7309daca17b6063735a0bdc7d39b9516c5a4e6d4b073d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40485798925"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.4",
      "date": "2026-10-27T10:11:44.000Z",
      "arch": "emscripten",
      "commit": "4cc88e2ef620ff8ec64131bd32a4a140be8f6482",
      "fileid": "https://r2.ropensci.org/1d1384e96839edf13c582c077631347f24a0b86f94e6e7d4d17be717845716fb",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40485798925"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.4",
      "date": "2026-10-27T10:13:32.000Z",
      "arch": "aarch64",
      "commit": "4cc88e2ef620ff8ec64131bd32a4a140be8f6482",
      "fileid": "https://r2.ropensci.org/7487937c891d7ef516528532a80846aa7280fa5e1e5bcf27f8bbed44fdc7938f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40485798925"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.4",
      "date": "2026-10-27T10:10:42.000Z",
      "arch": "x86_64",
      "commit": "4cc88e2ef620ff8ec64131bd32a4a140be8f6482",
      "fileid": "https://r2.ropensci.org/44f31d21cef5895c6564128d9467852d1a9fe6ba97cbb1031a7e5852fc50104a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40485798925"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.4",
      "date": "2026-10-27T10:12:46.000Z",
      "arch": "aarch64",
      "commit": "4cc88e2ef620ff8ec64131bd32a4a140be8f6482",
      "fileid": "https://r2.ropensci.org/9f8e19ec3fbc60c4afb5b7e76169de6ea920a63a0989b6b12089cbe2783014b5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40485798925"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.4",
      "date": "2026-10-27T10:10:31.000Z",
      "arch": "x86_64",
      "commit": "4cc88e2ef620ff8ec64131bd32a4a140be8f6482",
      "fileid": "https://r2.ropensci.org/c6f34cd2e2951330fd9384683487507b0a5e3ce0993c223969bf72254f2e3bc7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/40485798925"
    }
  ]
}