lmadd: lmadd

View source: R/tests.R

lmaddR Documentation

lmadd

Description

Complementary linear fits between signal and sets' feature scores

Usage

lmadd(
  signal,
  sets,
  use.intercept = FALSE,
  calc.threshold = 0.2,
  comb.threshold = 0.05
)

Arguments

signal

A named numeric vector indicating the signal (e.g. logFC) of each feature.

sets

A data.frame of annotation, with at least the following columns: 'set', 'feature' and 'score'. Alternatively, a sparse numeric matrix, with sets as columns and features as rows (dimensions must be named).

use.intercept

Logical; whether to use an intercept in the model.

calc.threshold

Minimum p-value threshold for the individual fit in order to calculate a complementary coefficient.

comb.threshold

Minimum p-value threshold for the individual fit in order to include as covariate for other coefficients.

Value

A data.frame.


ETHZ-INS/enrichMiR documentation built on July 20, 2024, 12:03 a.m.