Learn R Programming

automultinomial (version 1.0.0)

criterionFit: Minimize criterion (AIC or BIC)

Description

Takes a list of coefficient values and finds the values which minimize AIC or BIC

Usage

criterionFit(thetaList, X, z, A, BIC, logLike, constraint, thetaInds,
  innerIndices)

Arguments

thetaList

a list of coefficient values (probably from a LASSO path)

X

a design matrix

z

response matrix (for multinomial or logistic data)

A

a list of adjacency matrices

BIC

logical, use BIC if true or AIC if false

logLike

function to compute the loglikelihood: either centered or uncentered

constraint

constraint on eta

thetaInds

relevant indices

innerIndices

internal indices

Value

List containing a minimum criterion coefficient vector and the criterion for that vector

Examples

Run this code
# NOT RUN {
#criterionFit(thetaList,X,z,A,BIC,logLike,constraint,thetaInds,innerIndices)
# }

Run the code above in your browser using DataLab