collapse_pp_num: Collapse posterior probabilities based on number of traits of...

Description Usage Arguments Value

View source: R/processing.R

Description

Combine the posterior probabilities of association patterns according to the number of traits with non-null associations in each pattern. Provides the posterior probability of being associated with "at least n" number of traits/studies by summing over association patterns with at least n studies coming from the alternative distribution. Can also require non-null association with one or more traits and combine over other traits.

Usage

1
collapse_pp_num(post_prob, req_idx = NULL, prefix = "pp_ge_")

Arguments

post_prob

matrix of posterior probabilities.

req_idx

(optional) scalar or integer vector of trait(s) where a non-null association is required (i.e. from the alternative distribution). If NULL, no traits will be required.

prefix

character string denoting prefix of column names for the results matrix.

Value

A numeric matrix of combined posterior probabilities.


kjgleason/primo documentation built on Sept. 7, 2021, 5:21 p.m.