View source: R/GcClusterFunctions.R
calcCondProbs1 | R Documentation |
Calculate, for each field sample, Monte Carlo samples of the conditional probability that the field sample is associated with the first probability density function in the finite mixture model.
calcCondProbs1(transData, nPCs, combinedChains)
transData |
List containing the transformed geochemical
concentrations and related information.
This list is return by function |
nPCs |
Number of principal components that were used in the finite mixture model. |
combinedChains |
A |
The conditional probabilities are calculated using the formula in Gelman et al. (2014, p. 540 bottom).
A matrix containing the Monte Carlo samples of the
conditional probabilites. The number of matrix columns equals the
number of field samples, and the number of matrix rows equals the
number of Monte Carlo samples in combinedChains
. That is,
column j of the matrix contains Monte Carlo samples of the conditional
probability that field sample j is associated with the first probability
density function in the finite mixture model.
Gelman, A., Carlin, J.B., Stern, H.S., Dunson, D.B., Vehtari, A., and Rubin, D.B., 2014, Bayesian data analysis (3rd ed.), CRC Press.
## Not run:
condProbs1 <- calcCondProbs1(transData, nPCs, combinedChains)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.