Description Usage Arguments Value
This function simulates misclassification of binary phenotype (vector y) by switching fraction lambda of 0 (controls) to 1 (cases) and fraction c_alpha of 1 (cases) to 0 (controls).
1 |
y |
Vector of values of 0s and 1s. |
lambda |
Fraction of controls switched to cases. Default is NULL (no switch). |
c_alpha |
Fraction of cases switched to controls. Default is NULL (no switch). |
seed |
Seed number to ensure different switches take place everytime. Default is 1000. |
Vector with switched 0s and 1s according to defined lambda and alpha.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.