foydle: Fast P-Values For Linear Regression Interaction Term

Description Usage Arguments Value

Description

foydle computes p-values for the interaction term in the linear regression

x = b0 + b1 y + b2 z + b3 y*z

where x, y, and z are columns from xmat, ymat, and zmat, respectively.

Usage

1
2
foydle(xmat, ymat, zmat, output_file = NULL, with_return = TRUE,
  names = c("x", "y", "z", "pvalue"), threshold = NULL, cores = 1)

Arguments

xmat, ymat, zmat

Numeric matrices

output_file

Path to output file

with_return

If FALSE, return NULL (default: TRUE)

names

Names for columns in output table

threshold

Save only results with p-value below threshold (default: save all results)

cores

Number of CPU cores to use (default 1)

Value

If with_return is TRUE, the function returns a data frame with columns "x", "y", "z", and "pvalue". Columns "x", "y", and "z" contain the names of the columns of xmat, ymat, and zmat that were used in computing the p-value in the "pvalue" column. The column names of the resulting table can be changed via the names argument. The same data frame that is returned is also written to output_file.


cbaumbach/foydle documentation built on May 13, 2019, 1:47 p.m.