subjectCenteringTransform: subject-centering transform

View source: R/functionsTransformation.R

subjectCenteringTransformR Documentation

subject-centering transform

Description

subjectCenteringTransform is a transformation that can be applied to a matrix of data. the resulting matrix have means that are centered on the grand mean, subject-wise \insertCitec05superb.

Usage

subjectCenteringTransform(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 Dec. 23, 2024, 8:58 p.m.