internal: Internal Validation Checks

Description Usage Details Value

Description

Will check that the contrasts provided are indeed contrasts. contrasts are expected to be either a vector of string or a matrix containing the contrasts coefficients.

Usage

1
2
3
4
5
6
7
expand_contrast(moanin_model, contrast_vector)

check_data_meta(data, object)

check_is_2d(X)

is_contrasts(contrasts, moanin_model)

Details

If a vector of string is provided, the function will call limma::makeContrast in order to obtain the contrasts coefficients.

If a contrasts matrix is provided, it will perform a number of checks on the contrasts matrix to make sure it contains the number of rows expected, and that each contrast indeed sums to 0.

Value

Does not return anything. Only hits errors if there are problems.

is_contrasts returns the contrasts, with any corrections.


NelleV/moanin documentation built on July 28, 2021, 7:34 p.m.