Description Usage Arguments Details Value Note Author(s) References Examples

Constructs and applies the Flury back-projection matrix, which when multiplied by a data vector removes a particular directional component

1 2 |

`x` |
(numeric) A data matrix (observations as rows, variables as columns) to back-project, or (if f is missing) a list of a data matrix and a grouping variable |

`f` |
(factor) A grouping factor to use to calculate CPC1 of x, if evec is not specified |

`evec` |
(numeric) A direction vector to remove from the data by back-projection (typically the first common principal component): it should be normalized (sum of squares equals 1) |

`center` |
mean-correct data before back-projecting? |

The back-projection matrix B is I - e*t(e); back-projecting a vector x is done by multiplying B * x.

Either the back-projection matrix or the back-projected data matrix

mean correction is done so that the grand mean of the entire data set is zero. It doesn't matter for balanced data sets, but for unbalanced data sets it should (?) probably be done so that the means of the group means are zero instead.

Ben Bolker

Flury etc.

1 2 3 4 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.