R2_partition: Function to partition the Pratt index contributions of tissue-gene pairs, direct causal variants, and infinitesimal effects
R2_partition.RdThis function partitions the total Pratt index of all effects into contributions from tissue-gene pairs, direct causal variants, and infinitesimal effects, using vectors of linear predictors and the outcome GWAS Z-scores.
Arguments
- y
A vector of Z-scores of marginal effects from the outcome GWAS.
- eta.theta
A vector of the linear predictor of tissue-gene causal effects.
- eta.gamma
A vector of the linear predictor of direct causal effects.
- eta.upsilon
A vector of the linear predictor of infinitesimal effects. Default is `NULL`.
- LD
A LD matrix.