# RankReg: Rank the regression models based on the confidence envelope... In ConfZIC: Confidence Envelopes for Model Selection Criteria Based on Minimum ZIC

 RankReg R Documentation

## Rank the regression models based on the confidence envelope for minimum ZIC

### Description

Narrow down the number of models to look at in model selection using the confidence envelope based on the minimum ZIC values for regression data. Here, we compute the ZIC values ("AIC", "BIC", or "AICc") for regression data, confidence envelope for the minimum ZIC values for the given confidence limit, and rank the best models which lie in the confidence envelope.

### Usage

RankReg(data,alphaval=0.95, model_ZIC="AIC")


### Arguments

 data a matrix of n by (m+1) where m is the number of independent variables. First column should be the dependent variable and the rest of the m columns should be the independent variables of the dataset. Maximum of m should be 10. alphaval confidence limit of the confidence envelope (Default is 0.95). model_ZIC type of the information criterion, it can be "AIC", "BIC", or "AICc" (Default is the "AIC").

### Details

This program involves the computation of multivariate normal-probabilities with covariance matrices based on minimum ZIC inverting the CDF of the minimum ZIC. It involves both the computation of singular and nonsingular probabilities. The methodology is described in Genz (1992).

Let X_j be the ZIC value for the j^{th} fitted model. Compute the cdf values of the minimum ZIC, F_{X_{(1)}}(\cdot) numerically and then obtain the 100\cdot (1-\alpha)\% confidence envelope:

CE(\alpha)=F^{-1}_{X_{(1)}}(1-\alpha)

See details:

Jayaweera I.M.L.N, Trindade A.A., “How Certain are You in Your Minimum AIC and BIC Values?", Sankhya A (2023+)

### Value

A list containing at least the following components.

 Ranked_Models A set of top ranked models which lie in the confidence envelop CE(\alpha) (with variables list and the ranked ZIC values ("AIC", "BIC", or "AICc")) for regression data. 0 represents the coefficient while 1,2,...,m give the corresponding columns of independent variables X_1,X_2,...,X_m respectively. Confidence_Envelope gives the confidence envelope CE(\alpha) for the minimum ZIC. Confidence_Limit the confidence limit, 1-\alpha. Total_Models number of total fitted models.

### References

Genz, A. (1992). Numerical computation of multivariate normal probabilities. Journal of computational and graphical statistics, 1(2), 141-149.

### Examples


library("ConfZIC")
data(Concrete)
x=Concrete
Y=x[,9] #dependent variable
#independent variables
X1=x[,1];X2=x[,2];X3=x[,3];X4=x[,4];
X5=x[,5];X6=x[,6];X7=x[,7];X8=x[,8];
mydata=cbind(Y,X1,X2,X3,X4,X5,X6,X7,X8) #data matrix
RankReg(mydata,0.95,"BIC")



ConfZIC documentation built on July 9, 2023, 5:27 p.m.