Description Usage Arguments Value Examples
Combine the posterior probabilities for combinations of individual traits/studies according to the association patterns from which those traits/studies all come from the alternative distribution. Provides the posterior probability of being associated with "at least traits X, Y and Z", for example. Can also require non-null association with one or more traits/studies and combine over patterns where that/those trait(s) also come from the alternative distribution.
| 1 | collapse_pp_combin(post_prob, combos, req_idx = NULL, prefix = "pp")
 | 
| post_prob | matrix of posterior probabilities. | 
| combos | matrix or integer specifying combinations. When matrix, each row is
a combination, with column indices of traits belonging to the combination specified in
columns of  | 
| req_idx | (optional) scalar or integer vector of trait(s) where a non-null
association is required (i.e. from the alternative distribution).
If  | 
| prefix | character string denoting prefix of column names for the results matrix. | 
A numeric matrix of combined posterior probabilities.
| 1 2 3 | ## all pairs of traits
myCombos <- t(combn(4,2))
collapsed_pp <- collapse_pp_combin(post_prob,myCombos)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.