test_terms: Perform association test for terms.

Description Usage Arguments Value

View source: R/assoc.R

Description

Perform association test for terms.

Usage

1
2
3
4
5
6
7
8
test_terms(
  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.

max_pcs

Maximum number of PCs to use per term.

Test

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

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.