{
  "_id": "6a60745314e95619b75d9d64",
  "Package": "steinsampling",
  "Title": "Kernel Stein Discrepancy Goodness-of-Fit and Stein Sampling\nTools",
  "Version": "0.1.0",
  "Date": "2026-07-11",
  "Authors@R": "c(\nperson(\"Junhao\", \"Gao\",\nemail = \"jug049@ucsd.edu\",\nrole = c(\"aut\", \"cre\")),\nperson(\"Ery\", \"Arias-Castro\",\nemail = \"eariascastro@ucsd.edu\",\nrole = \"aut\")\n)",
  "Maintainer": "Junhao Gao <jug049@ucsd.edu>",
  "Description": "Provides Stein-discrepancy goodness-of-fit tests and\nStein-method-based sampling tools. The tests include kernel\nStein discrepancy U- and V-statistics following Liu et al.\n(2016) <doi:10.48550/arXiv.1602.03253> and Chwialkowski et al.\n(2016) <doi:10.48550/arXiv.1602.02964>, plus the finite set\nStein discrepancy test of Jitkrittum et al. (2017)\n<doi:10.48550/arXiv.1705.07673>. The sampling tools include\nStein thinning, Stein Points, Stein Point Markov chain Monte\nCarlo, and Stein variational gradient descent following Riabiz\net al. (2022) <doi:10.48550/arXiv.2005.03952>, Chen et al.\n(2018) <doi:10.48550/arXiv.1803.10161>, Chen et al. (2019)\n<doi:10.48550/arXiv.1905.03673>, and Liu and Wang (2016)\n<doi:10.48550/arXiv.1608.04471>. Gaussian mixture utilities are\nincluded for simulation, likelihoods, posterior probabilities,\nscores, and plots.",
  "URL": "https://github.com/junhao7622/steinsampling",
  "BugReports": "https://github.com/junhao7622/steinsampling/issues",
  "License": "GPL (>= 2)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "Collate": "'steinsampling-package.R' 'stein_helpers.R' 'kernel_classes.R'\n'bootstrap.R' 'gmm_model.R' 'ksd_u_test.R' 'ksd_v_test.R'\n'fssd_test.R' 'svgd.R' 'stein_thinning.R' 'stein_points.R'\n'stein_point_mcmc.R'",
  "Config/testthat/edition": "3",
  "NeedsCompilation": "no",
  "Config/roxygen2/version": "8.0.0",
  "Repository": "https://junhao7622.r-universe.dev",
  "Date/Publication": "2026-07-12 05:55:49 UTC",
  "RemoteUrl": "https://github.com/junhao7622/steinsampling",
  "RemoteRef": "HEAD",
  "RemoteSha": "4ba336054ae37035234902d2f4e27844c6cbf184",
  "Packaged": {
    "Date": "2026-07-22 07:37:45 UTC",
    "User": "root"
  },
  "Author": "Junhao Gao [aut, cre],\nEry Arias-Castro [aut]",
  "_user": "junhao7622",
  "_type": "src",
  "_file": "steinsampling_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/1a60d32ad00b4b5d9502b90f2cdcd3ba8e0a5ef4a70e2fe4f05cfcb0a2e3701c",
  "_filesize": 18562338,
  "_sha256": "1a60d32ad00b4b5d9502b90f2cdcd3ba8e0a5ef4a70e2fe4f05cfcb0a2e3701c",
  "_expires": "2026-10-30T07:42:08.000Z",
  "_created": "2026-07-22T07:37:45.000Z",
  "_published": "2026-07-22T07:42:11.032Z",
  "_jobs": [
    {
      "job": 88861246768,
      "time": 122,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8521878542"
    },
    {
      "job": 88861246775,
      "time": 123,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8521878659"
    },
    {
      "job": 88861246778,
      "time": 214,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8521897844"
    },
    {
      "job": 88861246771,
      "time": 133,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8521871656"
    },
    {
      "job": 88860646063,
      "time": 189,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8521826880"
    },
    {
      "job": 88861246743,
      "time": 107,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8521872436"
    },
    {
      "job": 88861246756,
      "time": 79,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8521860904"
    },
    {
      "job": 88861246797,
      "time": 73,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8521858903"
    },
    {
      "job": 88861246776,
      "time": 78,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8521860815"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/junhao7622/actions/runs/29900711122",
  "_status": "success",
  "_upstream": "https://github.com/junhao7622/steinsampling",
  "_commit": {
    "id": "4ba336054ae37035234902d2f4e27844c6cbf184",
    "author": "junhao7622 <jug049@ucsd.edu>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Add files via upload",
    "time": 1783835749
  },
  "_maintainer": {
    "name": "Junhao Gao",
    "email": "jug049@ucsd.edu",
    "login": "junhao7622",
    "description": "",
    "uuid": 194012214
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "junhao7622",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-27",
      "n": 3
    },
    {
      "week": "2026-28",
      "n": 22
    }
  ],
  "_tags": [],
  "_topics": [
    "goodness-of-fit",
    "machine-learning",
    "sampling",
    "statistics"
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "junhao7622",
      "count": 25,
      "uuid": 194012214
    }
  ],
  "_userbio": {
    "uuid": 194012214,
    "type": "user",
    "name": "junhao7622",
    "followers": 0
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/steinsampling"
  },
  "_devurl": "https://github.com/junhao7622/steinsampling",
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/steinsampling.html",
    "LICENSE",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/junhao7622/steinsampling",
  "_realowner": "junhao7622",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-07-21"
    }
  ],
  "_exports": [
    "compute_fssd_null_pvalue",
    "compute_fssd_unbiased_stat",
    "compute_tau",
    "cross_kernel",
    "custom_adjusted_gradient",
    "custom_stein_kernel",
    "eval_kernel",
    "find_median_distance",
    "fmin_grid",
    "fmin_mc",
    "fmin_nm",
    "fssd_opt_test",
    "fssd_rand_test",
    "fssd_test",
    "get_score_evaluator",
    "gmm",
    "grad_theta_v_kernel",
    "grad_x_kernel",
    "grw",
    "grwmetrop",
    "ksd_u_bootstrap",
    "ksd_u_statistic",
    "ksd_u_test",
    "ksd_uq_matrix",
    "ksd_v_bootstrap",
    "ksd_v_statistic",
    "ksd_v_test",
    "ksd_vq_matrix",
    "likelihoodgmm",
    "mala",
    "perturbgmm",
    "plotgmm",
    "posteriorgmm",
    "rgmm",
    "rwm",
    "scorefunctiongmm",
    "sp_mcmc",
    "sp_mcmc_criterion",
    "sp_mcmc_eval_candidates",
    "sp_mcmc_select_start",
    "sp_mcmc_state",
    "stein_codescent",
    "stein_kernel",
    "stein_kernel_imq_score",
    "stein_kernel_inverse_log",
    "stein_kernel_matrix",
    "stein_points",
    "stein_thinning",
    "svgd",
    "trace_mixed_kernel",
    "update_svgd"
  ],
  "_help": [
    {
      "page": "steinsampling-package",
      "title": "steinsampling: Stein tests and Stein sampling tools",
      "topics": [
        "steinsampling-package",
        "steinsampling"
      ]
    },
    {
      "page": "compute_fssd_null_pvalue",
      "title": "Simulate the FSSD null distribution",
      "topics": [
        "compute_fssd_null_pvalue"
      ]
    },
    {
      "page": "compute_fssd_unbiased_stat",
      "title": "Estimate squared FSSD from a feature matrix",
      "topics": [
        "compute_fssd_unbiased_stat"
      ]
    },
    {
      "page": "compute_tau",
      "title": "Compute the FSSD feature matrix",
      "topics": [
        "compute_tau"
      ]
    },
    {
      "page": "custom_adjusted_gradient",
      "title": "Apply a custom SVGD direction adjustment",
      "topics": [
        "custom_adjusted_gradient"
      ]
    },
    {
      "page": "custom_stein_kernel",
      "title": "Create a custom Stein kernel",
      "topics": [
        "custom_stein_kernel"
      ]
    },
    {
      "page": "find_median_distance",
      "title": "Median squared distance between sample pairs",
      "topics": [
        "find_median_distance"
      ]
    },
    {
      "page": "fmin_grid",
      "title": "Create the grid search used by Stein Points",
      "topics": [
        "fmin_grid"
      ]
    },
    {
      "page": "fmin_mc",
      "title": "Create the Monte Carlo search used by Stein Points",
      "topics": [
        "fmin_mc"
      ]
    },
    {
      "page": "fmin_nm",
      "title": "Create the multi-start Nelder-Mead search used by Stein Points",
      "topics": [
        "fmin_nm"
      ]
    },
    {
      "page": "fssd_opt_test",
      "title": "FSSD test with optimized test locations",
      "topics": [
        "fssd_opt_test"
      ]
    },
    {
      "page": "fssd_rand_test",
      "title": "FSSD test with random test locations",
      "topics": [
        "fssd_rand_test"
      ]
    },
    {
      "page": "fssd_test",
      "title": "Finite Set Stein Discrepancy goodness-of-fit test",
      "topics": [
        "fssd_test"
      ]
    },
    {
      "page": "get_score_evaluator",
      "title": "Create a score function for a fixed Gaussian mixture model",
      "topics": [
        "get_score_evaluator"
      ]
    },
    {
      "page": "gmm",
      "title": "Create a Gaussian mixture model",
      "topics": [
        "gmm"
      ]
    },
    {
      "page": "grw",
      "title": "Run the Gaussian random-walk transition used by SP-MCMC",
      "topics": [
        "grw"
      ]
    },
    {
      "page": "grwmetrop",
      "title": "Run a Gaussian random-walk Metropolis chain",
      "topics": [
        "grwmetrop"
      ]
    },
    {
      "page": "kernel_generics",
      "title": "Building blocks for Stein kernels",
      "topics": [
        "cross_kernel",
        "eval_kernel",
        "grad_theta_v_kernel",
        "grad_x_kernel",
        "kernel_generics",
        "trace_mixed_kernel"
      ]
    },
    {
      "page": "ksd_u_bootstrap",
      "title": "Bootstrap the KSD U-statistic from a Stein-kernel matrix",
      "topics": [
        "ksd_u_bootstrap"
      ]
    },
    {
      "page": "ksd_u_statistic",
      "title": "Compute the KSD U-statistic from its Stein-kernel matrix",
      "topics": [
        "ksd_u_statistic"
      ]
    },
    {
      "page": "ksd_u_test",
      "title": "KSD goodness-of-fit test using the Liu et al. U-statistic",
      "topics": [
        "ksd_u_test"
      ]
    },
    {
      "page": "ksd_uq_matrix",
      "title": "Build the Stein-kernel matrix for the KSD U-statistic",
      "topics": [
        "ksd_uq_matrix"
      ]
    },
    {
      "page": "ksd_v_bootstrap",
      "title": "Wild-bootstrap the KSD V-statistic",
      "topics": [
        "ksd_v_bootstrap"
      ]
    },
    {
      "page": "ksd_v_statistic",
      "title": "Compute the KSD V-statistic from its Stein-kernel matrix",
      "topics": [
        "ksd_v_statistic"
      ]
    },
    {
      "page": "ksd_v_test",
      "title": "KSD goodness-of-fit test using the Chwialkowski et al. V-statistic",
      "topics": [
        "ksd_v_test"
      ]
    },
    {
      "page": "ksd_vq_matrix",
      "title": "Build the Stein-kernel matrix for the KSD V-statistic",
      "topics": [
        "ksd_vq_matrix"
      ]
    },
    {
      "page": "likelihoodgmm",
      "title": "Compute the mixture density for samples",
      "topics": [
        "likelihoodgmm"
      ]
    },
    {
      "page": "mala",
      "title": "Run a Metropolis-adjusted Langevin chain",
      "topics": [
        "mala"
      ]
    },
    {
      "page": "perturbgmm",
      "title": "Perturb the component means of a Gaussian mixture model",
      "topics": [
        "perturbgmm"
      ]
    },
    {
      "page": "plotgmm",
      "title": "Plot a one-dimensional Gaussian mixture sample",
      "topics": [
        "plotgmm"
      ]
    },
    {
      "page": "posteriorgmm",
      "title": "Compute posterior component probabilities for a Gaussian mixture",
      "topics": [
        "posteriorgmm"
      ]
    },
    {
      "page": "rgmm",
      "title": "Sample from a Gaussian mixture model",
      "topics": [
        "rgmm"
      ]
    },
    {
      "page": "rwm",
      "title": "Alias for the Gaussian random-walk transition",
      "topics": [
        "rwm"
      ]
    },
    {
      "page": "scorefunctiongmm",
      "title": "Compute the score of a Gaussian mixture density",
      "topics": [
        "scorefunctiongmm"
      ]
    },
    {
      "page": "sp_mcmc",
      "title": "Generate Stein Points from short MCMC candidate paths",
      "topics": [
        "sp_mcmc"
      ]
    },
    {
      "page": "sp_mcmc_criterion",
      "title": "Create an SP-MCMC start-point rule",
      "topics": [
        "sp_mcmc_criterion"
      ]
    },
    {
      "page": "sp_mcmc_eval_candidates",
      "title": "Score SP-MCMC candidate points",
      "topics": [
        "sp_mcmc_eval_candidates"
      ]
    },
    {
      "page": "sp_mcmc_select_start",
      "title": "Choose the next SP-MCMC chain start",
      "topics": [
        "sp_mcmc_select_start"
      ]
    },
    {
      "page": "sp_mcmc_state",
      "title": "Store the current SP-MCMC state for a start rule",
      "topics": [
        "sp_mcmc_state"
      ]
    },
    {
      "page": "stein_codescent",
      "title": "Refine Stein Points by coordinate descent",
      "topics": [
        "stein_codescent"
      ]
    },
    {
      "page": "stein_kernel",
      "title": "Create a built-in Stein kernel",
      "topics": [
        "stein_kernel"
      ]
    },
    {
      "page": "stein_kernel_imq_score",
      "title": "Create a score-distance IMQ Stein kernel",
      "topics": [
        "stein_kernel_imq_score"
      ]
    },
    {
      "page": "stein_kernel_inverse_log",
      "title": "Create an inverse-log Stein kernel",
      "topics": [
        "stein_kernel_inverse_log"
      ]
    },
    {
      "page": "stein_kernel_matrix",
      "title": "Compute pairwise Stein kernel values",
      "topics": [
        "stein_kernel_matrix"
      ]
    },
    {
      "page": "stein_points",
      "title": "Build a Stein Points sequence by greedy KSD minimization",
      "topics": [
        "stein_points"
      ]
    },
    {
      "page": "stein_thinning",
      "title": "Compress existing samples with Stein thinning",
      "topics": [
        "stein_thinning"
      ]
    },
    {
      "page": "svgd",
      "title": "Create an SVGD updater",
      "topics": [
        "svgd"
      ]
    },
    {
      "page": "update_svgd",
      "title": "Run SVGD particle updates",
      "topics": [
        "update_svgd"
      ]
    }
  ],
  "_rundeps": [
    "mvtnorm"
  ],
  "_score": 2.3010299956639813,
  "_indexed": true,
  "_nocasepkg": "steinsampling",
  "_universes": [
    "junhao7622"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-22T07:39:50.000Z",
      "distro": "resolute",
      "commit": "4ba336054ae37035234902d2f4e27844c6cbf184",
      "fileid": "https://r2.ropensci.org/9c70c228649fadbfc593659b16b71d9763e81dbdeb3c92806c669970384975f4",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/junhao7622/actions/runs/29900711122"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-22T07:39:51.000Z",
      "distro": "resolute",
      "commit": "4ba336054ae37035234902d2f4e27844c6cbf184",
      "fileid": "https://r2.ropensci.org/2a7a285375bb8d5cfbeee5d83aa76d67461c175d4e6059c71cdcd201a70e3b48",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/junhao7622/actions/runs/29900711122"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-07-22T07:40:36.000Z",
      "commit": "4ba336054ae37035234902d2f4e27844c6cbf184",
      "fileid": "https://r2.ropensci.org/d38c156a6204c8cfe87147a760f2854e45b3b4ec439acd7c2dd64ef6019be1d4",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/junhao7622/actions/runs/29900711122"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-07-22T07:39:37.000Z",
      "commit": "4ba336054ae37035234902d2f4e27844c6cbf184",
      "fileid": "https://r2.ropensci.org/7fce37f6f2e94686bd78810f177ace22f98a6bdf2bf285874617fb28cdef91ae",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/junhao7622/actions/runs/29900711122"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-07-22T07:39:50.000Z",
      "commit": "4ba336054ae37035234902d2f4e27844c6cbf184",
      "fileid": "https://r2.ropensci.org/3d624c878d64f50be4afe496136a3516e532dde1c534df9a787847b983507d64",
      "status": "success",
      "buildurl": "https://github.com/r-universe/junhao7622/actions/runs/29900711122"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-07-22T07:38:57.000Z",
      "commit": "4ba336054ae37035234902d2f4e27844c6cbf184",
      "fileid": "https://r2.ropensci.org/eb92ff935ab5e659204a9e9bb67fef105790f6b31e80f373ca6b2e168a2812dd",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/junhao7622/actions/runs/29900711122"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-07-22T07:38:52.000Z",
      "commit": "4ba336054ae37035234902d2f4e27844c6cbf184",
      "fileid": "https://r2.ropensci.org/a1c9256f4027dbea627b94628b9ad07deedb06691dc79d3adde4fb81dfe036c1",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/junhao7622/actions/runs/29900711122"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-07-22T07:38:57.000Z",
      "commit": "4ba336054ae37035234902d2f4e27844c6cbf184",
      "fileid": "https://r2.ropensci.org/56049faf6c222aac4eaa7bbefc0682ae420baf639aaeb5fe997f7ce95e4d4025",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/junhao7622/actions/runs/29900711122"
    }
  ]
}