IV_reduction: Instrumental variable reduction.

Description Usage Arguments Value Examples

View source: R/CIVMR_function.R

Description

This function remove highly correlated IVs. An upgraded function SNP_reduction() is suggested.

Usage

1
IV_reduction(snp_matrix, crit_high_cor = 0.8)

Arguments

snp_matrix:

IV matrix with dimension n * p.

crit_high_cor:

criteria to choose highly correlated SNPs. default is 0.8 correlation.

Value

sel_snp: the selected IVs.

id_snp: the ids (columns) of selected IVs in the original IV matrix.

Examples

1
2

LaiJiang/CIVMR documentation built on July 16, 2020, 12:45 a.m.