Description Usage Arguments Value Examples
Given an N by P matrix M, where each column p in 1, ..., P belongs to a group g of G total groups, this function computes the mean column vector per group.
1 | average(M, g)
|
M |
numeric matrix |
g |
(character) vector that indicates groups of columns of M |
An N by G matrix M_bar
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.