Learn R Programming

CHAPGWAS (version 0.1.3)

test.HAP: test.HAP: Test haplotype effects for a local region

Description

test.HAP: Test haplotype effects for a local region

Usage

test.HAP(HAP.X, YFIX, KIN, PAR)

Value

A list containing: * my.scan – scan statistics * z – haplotype design matrix (n x number of haplotypes) * ELEMENT – labels of distinct haplotype categories

Arguments

HAP.X

Haplotype genotype matrix for a candidate genomic region. Each column corresponds to a SNP within the region. Every two consecutive rows correspond to the two homologous haplotypes of the same individual (rows 1–2 = individual 1, rows 3–4 = individual 2, etc.).

YFIX

Phenotype and fixed-effect covariates.

KIN

List of kinship matrices.

PAR

Optional vector of variance components; if NULL, estimated internally.