Skip to contents

This 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.

Usage

R2_partition(y, eta.theta, eta.gamma, eta.upsilon = NULL, LD)

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.

Value

A data frame containing:

r1

Total Pratt index of all effects.

r2

Pratt index contribution of tissue-gene pairs.

r3

Pratt index contribution of direct causal variants.

r4

Pratt index contribution of infinitesimal effects.