Description Usage Arguments Details Value Author(s)
The rearrange_mat function rearranges the column elements of a given 'a_matrix'.
1 | rearrange_mat(a_matrix, treatments)
|
a_matrix |
A a_matrix of the first design (D1) |
treatments |
The number of treatments of the second design (D2) |
This function reads an 'a_matrix' (A) generated from two designs (D1 and D2) and rearranges the column elements based on the treatments numbers in the second design (D2). It iteratively rearrange the items row-wise until the new A is generated with each row containing all the treatments of D2 exaclty once.
It returns new 'a_matrix' (A) with each row containing all the treatments of D2 exaclty once.
1) Sayantani Karmakar 2) Md. Ashraful Haque 3) Cini Varghese 4) Seema Jaggi 5) Eldho Varghese 6) Mohd. Harun
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.