Define the opposite of the scalar function that is maximized when running the E-M algorithm for CUBE models without covariates.
effecube(paravec, dati, m)
Vector of initial estimates for the feeling and the overdispersion parameters
Matrix binding together a column vector of length \(m\) containing the posterior probabilities that each observed category has been generated by the first component distribution of the mixture, and the column vector of the absolute frequencies of the observations
It is called as an argument for optim within CUBE function (where no covariate is specified) and "cubeforsim" as the function to minimize.
Iannario, M. (2014). Modelling Uncertainty and Overdispersion in Ordinal Data,
Communications in Statistics - Theory and Methods, 43, 771--786