Description Usage Arguments Value
Results are optimized for the following, in decreasing order of preference: number of subjects; proportion of group sizes close to props; p-value as large as possible.
1 2 3 4 5 6 7 8 9 10 | .check_subspaces_for_group_size_setup(
best,
grpsize_setup,
sspace,
condition,
covariates,
halting_test,
thresh,
print_info
)
|
best |
The best matched groups so far together with its p-value / thresh ratio; a list containing ratio and sets (a list of subject index vectors). |
grpsize_setup |
A set of group sizes as a data.table row (also a list). |
sspace |
An ordered subject subspace: a list of vectors, with one vector per group containing the corresponding subject indices. |
condition |
A factor vector containing condition labels. |
covariates |
A columnwise matrix containing covariates to match the conditions on. |
halting_test |
A function to apply to 'covariates' (in matrix form)
which is TRUE iff the conditions are matched.
Signature: halting_test(condition, covariates, thresh).
The following halting tests are part of this package:
|
thresh |
The return value of halting_test has to be greater than or equal to thresh for the matched groups. |
print_info |
If TRUE, prints summary information on the input and the
results, as well as progress information for the
exhaustive search and random algorithms. Default: TRUE;
can be changed using
|
A list of logical vectors for the best matched groups.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.