Description Usage Arguments Value
Helper function to check a given (between-treatment) contrast matrix or contruct a suitable matrix given one of the character string available in contrMat(package multcomp). For internal use
1 | treatcon2cmat(treatcon, base, ntab)
|
treatcon |
either a matrix with numeric entries, where each row specifies one contrasts between treatments, or a single character string; if a matrix: number of columns must equal the number of treatment levels in the factor variable
if a character string: chracter string will be passed to the type-argument in |
base |
a single integer, indicating which treatment level shoudl serve as a control, when passed to |
ntab |
a (named) vector with sample sizes in the treatment groups, to be passed to argument |
a matrix, for internal use
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.