Description Usage Arguments Value
View source: R/infoCriterion.r
Function that calculates cross-validation selection criteria
1 | infoCriterion(ynew, pred, family, type, size = NULL, npar = 0)
|
ynew |
data matrix corresponding to the observations used as test sample. |
pred |
predicted value of the linear predictor obtained from Xnew and the estimated parameters. |
family |
a vector of the same length as the number of responses containing characters identifying the distribution families of the dependent variables. "bernoulli", "binomial", "poisson" or "gaussian" are allowed. |
type |
information criterion used. Likelihood, aic, bic, aicc or Mean Square Prediction Error (mspe) are defined. Area Under ROC Curve (auc) also defined for Bernoulli cases only. |
size |
describes the number of trials for the binomial dependent variables. A (number of statistical units * number of binomial dependent variables) matrix is expected. |
npar |
number of parameters used for penalisation. |
a matrix containing the criterion value for each dependent variable (row) and each number of components (column).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.