Coarse approximation linear function, randomized

1 2 | ```
calf_randomize(data, nMarkers, randomize = TRUE, targetVector, times = 1,
margin = NULL)
``` |

`data` |
Matrix or data frame. First column must contain case/control dummy coded variable (if targetVector = "binary"). Otherwise, first column must contain real number vector corresponding to selection variable (if targetVector = "real"). All other columns contain relevant markers. |

`nMarkers` |
Maximum number of markers to include in creation of sum. |

`randomize` |
Logical. Indicate TRUE to randomize the case/control status (or real number vector) for each individual. Used to compare results from true data with results from randomized data. |

`targetVector` |
Indicate "binary" for target vector with two options (e.g., case/control). Indicate "real" for target vector with real numbers. |

`times` |
Numeric. Indicates the number of replications to run with randomization. |

`margin` |
Real number from 0 to 1. Indicates the amount a potential marker must improve the target criterion (Pearson correlation or p-value) in order to add the marker. |

A data frame containing the chosen markers and their assigned weight (-1 or 1)

The AUC value for the classification

aucHist A histogram of the AUCs across replications.

1 | ```
calf_randomize(data = CaseControl, nMarkers = 6, targetVector = "binary", times = 5)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.