Learn R Programming

pleioh2g (version 0.1.0)

Cal_cor_pleiotropic_h2_single: Compute single pleioh2g for target disease before correction with referred disease index in the rg matrix

Description

This function computes pleioh2g for the target disease before correction.

Usage

Cal_cor_pleiotropic_h2_single(rg_mat, h2g_T_single, plei_h2_idx)

Value

pleioh2g value for the target disease before correction

Arguments

rg_mat

genetic correlation matrix.

h2g_T_single

heritability for target diseases.

plei_h2_idx

index of the target disease in the rg_mat.

Examples

Run this code
data(Results_full_rg_15D)
data(h2_vector_15D)
plei_h2_idx<-1
h2g_T_single<-h2_vector_15D[plei_h2_idx]
Cal_cor_pleiotropic_h2_single(Results_full_rg_15D,h2g_T_single,plei_h2_idx)

Run the code above in your browser using DataLab