Comparator {AllelicSeries}R Documentation

Comparator Test

Description

Runs burden, SKAT, and SKAT-O, using default settings.

Usage

Comparator(covar, geno, pheno, apply_int = TRUE, is_pheno_binary = FALSE)

Arguments

covar

(n x p) covariate matrix.

geno

(n x snps) genotype matrix.

pheno

(n x 1) phenotype vector.

apply_int

Apply rank-based inverse normal transform to the phenotype? Default: TRUE. Ignored if phenotype is binary.

is_pheno_binary

Is the phenotype binary? Default: FALSE.

Value

Numeric vector of p-values.

Examples

# Generate data.
data <- DGP(n = 1e3, snps = 1e2)

# Run the comparators.
results <- Comparator(
  geno = data$geno,
  pheno = data$pheno,
  covar = data$covar
)

[Package AllelicSeries version 0.0.4.1 Index]