test_genes: Perform association test for genes.

Description Usage Arguments Value

View source: R/assoc.R

Description

Perform association test for genes.

Usage

1
2
3
4
5
6
7
8
test_genes(
  path,
  formula,
  covars,
  family = binomial("logit"),
  test = NULL,
  max_pcs = Inf
)

Arguments

path

Path to PC data.

formula

An object of class formula.

covars

A data frame containing covariates.

family

Error distribution and link function to be used in the model. See glm.fit for details.

test

Test statistic for model comparison. One of "Chisq", "LRT", "Rao", "F" or "Cp". See stat.anova.

max_pcs

Maximum number of PCs to use per gene.

Value

A list with elements:

test

Data frame of test statistics.

coef

Coefficients from each term model.


SimonLarsen/higana documentation built on April 24, 2020, 7:29 a.m.