sams0.4.3 package

Merge-Split Samplers for Conjugate Bayesian Nonparametric Models

asCanonical

Coerce a Vector of Cluster Labels to Canonical Form

asClusterLabels

Coerce a Set Partition in List Structure to Numeric Vectors of Cluster...

asSetPartition

Coerce a Set Partition as Numeric Vectors of Cluster Labels to a List ...

clusterProportions

Compute the Proportion of Items in Each Cluster for All Partitions

clusterTrace

Plot Traces of Cluster Sizes

clusterWithItem

Identify Which Cluster Contains a Given Item

createNewCluster

Create a New Cluster with Given Item

dCRP

Compute Probability Mass of a Partition Under the Two Parameter Chines...

getThetas

Get theta Parameters from a Numeric Vector of Cluster Labels and Uniqu...

isCanonical

Check if a Vector of Cluster Labels is in Canonical Form

joinExistingCluster

Join Item to an Existing Cluster

nClusters

Count the Number of Clusters in a Set Partition

nealAlgorithm3

Conjugate Gibbs Sampler for a Partition

p18_bern

Multivariate Independent Bernoulli Data (p = 18)

p18_corr_mvn

Correlated Multivariate Normal Data (p = 18)

p18_mvn

Independent Multivariate Normal Data (p = 18)

p6_bern

Multivariate Independent Bernoulli Data (p = 6)

p6_big_bern

Large Sample Multivariate Independent Bernoulli Data (p = 6)

p6_mvn

Independent Multivariate Normal Data (p = 6)

partitionEntropy

Calculate the Entropy of a Set Partition

poch

Compute the Pochhammer Symbol (Rising Factorials) With Increment

psm

Compute the Posterior Pairwise Similarity for All Pairs of Items

psmMergeSplit

Merge-Split Sampling for a Partition Based on Sequential Allocation In...

psmMergeSplit_base

Base Functionality for the psmMergeSplit Function

restrictedGibbsMergeSplit

Merge-Split Sampling for a Partition Based on Restricted Gibbs Scans

seqAllocatedMergeSplit

Merge-split Sampling for a Partition Based on Sequential Allocation of...

seqAllocatedMergeSplit_base

Base Functionality for the seqAllocatedMergeSplit Function

simpleMergeSplit

Merge-Split Sampling for a Partition Using Uniformly Random Allocation

sizeOfLargestCluster

Calculate the Number of Items in the Largest Cluster of a Set Partitio...

transformedWeights

Enumerate Transformed Weights for Choosing i and j Non-Uniformly

Markov chain Monte Carlo samplers for posterior simulations of conjugate Bayesian nonparametric mixture models. Functionality is provided for Gibbs sampling as in Algorithm 3 of Neal (2000) <DOI:10.1080/10618600.2000.10474879>, restricted Gibbs merge-split sampling as described in Jain & Neal (2004) <DOI:10.1198/1061860043001>, and sequentially-allocated merge-split sampling <DOI:10.1080/00949655.2021.1998502>, as well as summary and utility functions.

  • Maintainer: David B. Dahl
  • License: GPL-3
  • Last published: 2022-04-19