Description Usage Arguments Details Value Author(s)
View source: R/helpFunctions.R
Given a design matrix and a cluster identification variable. A new design matrix is returned, where each column is centered around its cluster mean. Using C++ code for speed.
1 | centerX(x, id)
|
x |
A design matrix |
id |
A cluster identifying variable. |
centerX
is written as a help function with the aim of being fast.
A matrix with cluster centered columns.
Johan Zetterqvist, Arvid Sjölander
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.