designVec2Mat: Convert between a vector and matrix representation of the...

Description Usage Arguments Note Author(s)

View source: R/designVec2Mat.R

Description

Convert between representations of a one-way anova with $m$ treatments and $T$ measurements. The vector representation is a T-length integer vector with m distinct integers. The matrix representation is a T by m matrix with a 1 at i,j indicating the i'th measurement belongs to the j'th treatment.

Usage

1
2
3
designVec2Mat(desvec)
designMat2Vec(desmat)
perm2Mat(perm)

Arguments

desvec,perm

An integer vector of length T with m distinct non-zero integers. 0 indicates measurements should be discarded.

desmat

A 0-1 matrix with T rows, m columns.

Note

designVec2Mat() is called within getAveraging .

Author(s)

Yuval Benjamini


shuffle documentation built on May 20, 2017, 2:31 a.m.

Search within the shuffle package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.