Description Usage Arguments Value Author(s) Examples

Utility functions for computing vectors of row-by-row means, variances, and t-statistics.

1 2 3 4 5 | ```
matrixMean(x,na.rm=FALSE)
matrixVar(x, xmean, na.rm=FALSE)
matrixT(m, v, na.rm=FALSE)
matrixUnequalT(m, v)
matrixPairedT(m, v, pf)
``` |

`x` |
a matrix |

`xmean` |
a numeric vector or single-column matrix |

`m` |
a matrix |

`na.rm` |
a logical value indicating whether means, variances, and t-statistics should be computed after omitting NA values from individual rows of the data matrix. |

`v` |
a logical vector of length equal to the number of columns of |

`pf` |
a numerical vector of length equal to the number of columns
of |

`matrixMean`

returns a single-column matrix containing the
row-by-row means of `x`

.

`matrixVar`

returns a single-column matrix containing the
row-by-row means of `x`

, assuming that `xmean`

contains the
corresponding mean values.

`matrixT`

returns a single-column matrix of t-statistics from a
two-sample t-test comparing the columns for which `v`

is true to
those for which `v`

is false.

`matrixPairedT`

returns a single-column matrix of t-statistics from a
paired t-test.

`matrixUnequalT`

returns a list with two components: `tt`

is
a single-column matrix of t-statistics from a two-sample unequal
variance t-test comparing the columns for which `v`

is true to
those for which `v`

is false, and `df`

is a single-column
matrix of the degrees of freedom associated with each row..

Kevin R. Coombes <krc@silicovore.com>

1 2 3 4 5 6 7 8 9 10 11 12 13 |

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.