Learn R Programming

DAMisc (version 1.3)

pre: Proportional and Expected Proportional Reductions in Error

Description

Calculates proportional reduction in error (PRE) and expected proportional reduction in error (epre) from Herron (1999).

Usage

pre(mod1, mod2=NULL, sim=FALSE, R=2500)

Arguments

mod1
A model of class glm (with family binomial), polr or multinom for which (e)PRE will be calculated.
mod2
A model of the same class as mod1 against which proportional reduction in error will be measured. If NULL, the null model will be used.
sim
A logical argument indicating whether a parametric bootstrap should be used to calculate confidence bounds for (e)PRE. See Details for more information.
R
Number of bootstrap samples to be drawn if sim=TRUE.

Value

  • An object of class pre, which is a list with the following elements:
  • preThe proportional reduction in error
  • epreThe expected proportional reduction in error
  • m1formThe formula for model 1
  • m2formThe formula for model 2
  • pcpThe percent correctly predicted by model 1
  • pmcThe percent correctly predicted by model 2
  • epcpThe expected percent correctly predicted by model 1
  • epmcThe expected percent correctly predicted by model 2
  • pre.simA vector of bootstrapped PRE values if sim=TRUE
  • epre.simA vector of bootstrapped ePRE values if sim=TRUE

Details

Proportional reduction in error is calculated as a function of correct and incorrect predictions (and the probabilities of correct and incorrect predictions for ePRE). When sim=TRUE, a parametric bootstrap will be used that draws from the multivariate normal distribution centered at the coefficient estimates from the model and using the estimated variance-covariance matrix of the estimators as Sigma. This matrix is used to form R versions of XB and predictions are made for each of the R different versions of XB. Confidence intervals can then be created from the bootstrap sampled (e)PRE values.

References

Herron, M. 1999. Postestimation Uncertainty in Limited Dependent Variable Models. Political Analysis 8(1): 83--98.

Examples

Run this code
data(france)
left.mod <- glm(voteleft ~ male + age + retnat + 
	poly(lrself, 2), data=france, family=binomial)
pre(left.mod)

Run the code above in your browser using DataLab