bestcub {FastCUB} | R Documentation |
Best-subset variable selection for CUB models via fast EM algorithm
Description
Perform a best-subset search for CUB models on the basis of the BIC index, by combining all possible covariates' specification for feeling and for uncertainty parameters
Usage
bestcub(ordinal,m,Y,W,toler=1e-4,maxiter=200,iterc=5,alpha=0.05,mix=FALSE,
tolmix=1e+2,fmix=NULL,invgen=TRUE)
Arguments
ordinal |
Vector of ordinal responses |
m |
Number of ordinal categories |
Y |
Matrix of selected covariates for the uncertainty parameter |
W |
Matrix of selected covariates for the feeling parameter |
toler |
Fixed error tolerance for final estimates |
maxiter |
Maximum number of iterations allowed for running the optimization algorithm |
iterc |
Iteration from which the acceleration strategy starts |
alpha |
Significant level for Wald test |
mix |
Logical: should a first preliminary standard EM be run at toler equal to tolmix? (default is FALSE) |
tolmix |
Error tolerance for first preliminary EM (if mix=TRUE). |
fmix |
Fraction of iteration needed for first preliminary EM (if mix=TRUE). Default is null. |
invgen |
Logical: should the recursive formula for the inverse of the information matrix be considered? (Default is TRUE) |
Value
A list containing the following results:
vsel |
List of all estimated models (with the accelerated EM) |
bestW |
Names of covariates for feeling in the best model with all significant effect |
bestY |
Names of covariates for feeling in the best model with all significant effect |
param |
ML estimates of the best model |
se |
Estimated standard errors for the best model |
bic |
BIC index of the best (significant) model |
mattime |
Matrix of computational time for each of the estimated model |
matiter |
Matrix of number of iterations occurred for each of the estimated model |