ePCP: Function to calculate expected proportion of correct...

Description Usage Arguments Value Author(s) References Examples

Description

Calculates ePCP and the related (1-α)\% (approximate) confidence intervals for a given set of predicted success probabilities and the observed (binary) values.

Usage

1
ePCP(fit, y, alpha = 0.05)

Arguments

fit

a vector or matrix which includes the predicted success probabilities

y

a vector or matrix which includes the observed binary values

alpha

a numeric value for type I error

Value

Returns a matrix of output including the point estimate of the ePCP and the related (1-α)\% confidence interval bounds

Author(s)

Ozgur Asar

References

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

Examples

1
2
3
fit<-runif(100)
y<-rbinom(100,1,0.5)
ePCP(fit,y,alpha=0.05)

Example output

      ePCP    lower     upper
 0.5480918 0.450548 0.6456357

OOmisc documentation built on May 1, 2019, 10:17 p.m.

Related to ePCP in OOmisc...