logistErrorRate | R Documentation |
Calculate the testing error rate for a dataset on a logistic regression model (or the training error rate if no dataset is entered), and a results table with responses versus predicted responses.
logistErrorRate(gmod, nw = NULL, p = 0.5)
gmod |
A logistic regression model |
nw |
A dataset for which a testing error rate should be calculated
using the model in |
p |
Probability (default .5) above which the observation is assigned to the second level of the response. |
List with training error rate if nw
is NULL, testing error
rate otherwise, and a results table with responses versus predicted
responses.
gmod=glm(state~.,binomial,Puromycin)
logistErrorRate(gmod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.