eBIC | R Documentation |
This function performs model selection using extended BIC and the ridge partial correlation coefficients
eBIC(rpc.obj)
rpc.obj |
an object of class |
BIC.PATH vector of eBIC of each model, starting with the intercept only model.
model.best sorted indices (in increased order) of the model with the smallest EBIC
An Nguyen
Somak Dutta
Maintainer: Somak Dutta <somakd@iastate.edu>
n <- 50; p <- 400;
trueidx <- 1:3
truebeta <- c(4,5,6)
X <- matrix(rnorm(n*p), n, p) # n x p covariate matrix
y <- 0.5 + X[,trueidx] %*% truebeta + rnorm(n)
res <- rpc(X,y, lambda = 0.1, ncores = 1)
eBIC(res) # model.best: model selected by eBIC
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.