append_Primo_obj: Append a Primo object.

Description Usage Arguments Value

View source: R/processing.R

Description

Append two sets of Primo results. The function assumes that the two sets share marginal distribution parameters and a common correlation structure.

Usage

1
append_Primo_obj(Primo_obj1, Primo_obj2)

Arguments

Primo_obj1

list of results returned by Primo (from the function Primo_tstat, Primo_pval, Primo_modT or Primo_chiMix).

Primo_obj2

list of results returned by Primo.

Value

A list of Primo results with the following elements:

post_prob matrix of posterior probabilities (each column corresponds to an association pattern).
pis vector of estimated proportion of SNPs belonging to each association pattern.
D_mat matrix of densities under each association pattern.
Gamma correlation matrix.

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