Description Usage Arguments Value Examples
This function uses specified criteria to select the optimal subset from a list of subsets, given design matrix X and observation y.
1 | modelSelection(loglik, dim, n, criteria, penaltyBC = NULL)
|
loglik |
Vector of (unnormalized) log-likelihood values evaluated for each model evaluted at the maximum likelihood estimator |
dim |
Vector of dimension (or number of free unknown parameters) of each model |
n |
Integer of sample size |
criteria |
Vector of strings ('AIC, BIC, BC') indicating criteria to use |
penaltyBC |
Vector of non-default penalty values in using BC, default to NULL so that only the suggested value n^(1/3) will be considered |
Vector (cri_opt) of indices of candidate models
Vector (cri_name) of the criteria used
Vector (PI) of parametricness index, default to one value that corresponds to the default BC penalty
1 2 | res <- modelSelection(loglik = c(4.1, 5.2, 6.3), dim = c(1, 2, 3), n = 100,
criteria='AIC, BIC, BC', penaltyBC=NULL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.