All functions

MR_mega_MDS()

Calculate MDS of the Euclidean distance matrix

MR_mega_env_lrw()

Linear regression model with weights for environment-adjusted MR-MEGA approach

MR_mega_lrw()

Linear regression model with weights for MR-MEGA approach

MR_mega_normalize()

MR_mega_normalize

MR_mega_prep()

Prepare data for MR-mega approach and environment-adjusted MR-MEGA approach (mr-mega)

afr.gwas

GWAS data sets

check_eaf()

Check EA and NEA.

check_uniq()

Check unique

dist_pop()

Euclidean distance matrix

double_center()

Double-center distance matrix

getN_AverageEAF()

Calculate the weighted MAF.

gwas_input

Categorized GWAS data

lr_env_w()

The weighted environment-adjusted linear regression.

lr_w()

The weighted linear regression.

pcs

Two axes of genetic variation.

readInputfile()

read inputted file

sel_MafChrPos()

Select the quantified genetic variants with the specified threshold of MAF, chromosome and position.

smoke.env

The smoking proportions across the 7 populations.