twoStepTransform: two-step transform for subject centering and bias correction

View source: R/functionsTransformation.R

twoStepTransformR Documentation

two-step transform for subject centering and bias correction

Description

twoStepTransform is a transformation that can be applied to a matrix of data. The resulting matrix is both subject-centered and bias corrected, a technique called the CM technique \insertCiteb12,c05,m08superb

Usage

twoStepTransform(dta, variables)

Arguments

dta

a data.frame containing the data in wide format;

variables

a vector of column names on which the transformation will be applied. the remaining columns will be left unchanged

Value

a data.frame of the same form as dta with the variables transformed.

This function is useful when passed to the argument preprocessfct of superb() where it performs a modification of the data matrix.

References

\insertAllCited

dcousin3/superb documentation built on Oct. 29, 2024, 5:28 p.m.