Description Usage Arguments Value Examples
Function mapindex() maps the 1-d index r=1,...,N to 2-d index i=1, ...a, j=1, ..., ni. Generally the covariate values from all treatments are stored together in one vector and r=1,...,N enumerates the values. For any integer between 1 and N, mapindex tells which treatment the rth value belongs to, and which observation in the identified treatment.
1 | mapindex(r, n)
|
r |
an integer between 1 and sum(n). |
n |
a vector of the sample sizes. |
the 2-d index, where the first gives which treatment the value belongs to and the second gives which observation in that treatment.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.