getPRE | R Documentation |
Calculates proportional reduction in error (PRE) and expected proportional reduction in error (epre) from Herron (1999).
getPRE(mod1, data)
mod1 |
A model of class |
data |
Data frame to be passed down to the function. |
Proportional reduction in error is calculated as a function of correct and incorrect predictions (and the probabilities of correct and incorrect predictions for ePRE).
An object of class pre
, which is a list with the following
elements:
pre |
The proportional reduction in error |
epre |
The expected proportional reduction in error |
m1form |
The formula for model 1 |
m2form |
The formula for model 2 |
pcp |
The percent correctly predicted by model 1 |
pmc |
The percent correctly predicted by model 2 |
epcp |
The expected percent correctly predicted by model 1 |
epmc |
The expected percent correctly predicted by model 2 |
Dave Armstrong
Herron, M. 1999. Postestimation Uncertainty in Limited Dependent Variable Models. Political Analysis 8(1): 83–98.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.