rep_models: Given a pair of SNPs, fit a model using single and collapsed...

Description Usage Arguments Value

View source: R/rep_models.R

Description

Given a pair of SNPs, fit a model using single and collapsed genotypes

Usage

1
rep_models(mat, snp1, snp2, pheno_name, covar_names)

Arguments

mat

A data frame containing a collection of single SNP genotypes, SNP names should be column names.

snp1

Character.Name of first SNP

snp2

Character.Name of second SNP

pheno_name

Character. Name of phenotype.

covar_names

Character. Vector of names of covariates.

Value

A data frame with five columns: snp1, snp2, p1 (p value of snp1), p2 (pvalue of snp2) and pcol (p value of collapsed genotype).


kindlychung/CollapsABEL documentation built on May 20, 2019, 9:57 a.m.