Description Usage Arguments Details Value Examples

Run a Logistic Regression given training data (and optional test data).

1 | ```
logisticRegression(train, labels, test = NULL)
``` |

`train` |
A matrix of training data values |

`labels` |
An integer vector of target (class) labels, with the same length as the training data set |

`test` |
An optional test set, with the same number of columns as the test set. |

This function uses a train set matrix and vector of target labels to run a logistic regression. If an optional test data set is supplied, it will be evaluated given the estimates from the initial test set.

A list with several components: means of training data means, variance of training data variances, probanbilities of training data class probabilities. If a test data set was supplied an estimated classification vector is also returned.

1 2 3 4 5 6 |

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.