powered by
Takes a list of coefficient values and finds the values which minimize AIC or BIC
criterionFit(thetaList, X, z, A, BIC, logLike, constraint, thetaInds, innerIndices)
a list of coefficient values (probably from a LASSO path)
a design matrix
response matrix (for multinomial or logistic data)
a list of adjacency matrices
logical, use BIC if true or AIC if false
function to compute the loglikelihood: either centered or uncentered
constraint on eta
relevant indices
internal indices
List containing a minimum criterion coefficient vector and the criterion for that vector
# NOT RUN { #criterionFit(thetaList,X,z,A,BIC,logLike,constraint,thetaInds,innerIndices) # }
Run the code above in your browser using DataLab