rvmmat_test: Calculate prospective and retrospective P-values for RVMMAT...

View source: R/rvmmat_pvalue.R

rvmmat_testR Documentation

Calculate prospective and retrospective P-values for RVMMAT test

Description

This function tests a SNPs for a given SNP set for a given estimated null model.

Usage

rvmmat_test(rvmmat.est, G, impute.method = "fixed", GRM = NULL)

Arguments

rvmmat.est

The output of function "rvmmat_est()"

G

The genotype matrix, an m*q matrix where m is the number of subjects and q is the total number genetic variants.

impute.method

choose the iputation method when there is missing genotype. Optional options are: 'random', 'fixed' or 'bestguess'.

GRM

takes m-by-m genetic correlation matrix or kinship matrix.

Value

This function returns a dataframe. The row name is the SNP ID, the first column is the prospective pvalue and the second colum is the restrospective pvalue.


ZWang-Lab/RVMMAT documentation built on Sept. 27, 2024, 5:19 p.m.