pre(mod1, mod2=NULL, sim=FALSE, R=2500)
glm
(with family binomial
), polr
or multinom
for which (e)PRE will be calculated.mod1
against which proportional reduction in error will be measured. If NULL
, the null model will be used.Details
for more information.sim=TRUE
.pre
, which is a list with the following elements:sim=TRUE
sim=TRUE
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.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