ci.mape1 {statpsych}R Documentation

Confidence interval for a mean absolute prediction error

Description

Computes a confidence interval for a population mean absolute prediction error (MAPE) in a general linear model. The MAPE is a more robust alternative to the residual standard deviation. This function requires a vector of estimated residuals from a general linear model. This confidence interval does not assume zero excess kurtosis but does assume symmetry of the population prediction errors.

Usage

ci.mape1(alpha, res, s)

Arguments

alpha

alpha level for 1-alpha confidence

res

vector of residuals

s

number of predictor variables in model

Value

Returns a 1-row matrix. The columns are:

Examples

res <- c(-2.70, -2.69, -1.32, 1.02, 1.23, -1.46, 2.21, -2.10, 2.56,
      -3.02, -1.55, 1.46, 4.02, 2.34)
ci.mape1(.05, res, 1)

# Should return:
# Estimate        SE       LL       UL
#   2.3744 0.3314752 1.751678 3.218499
 


[Package statpsych version 1.5.0 Index]