help gr_prob_cub

Title

gr_prob_cub - Module to graph predicted probabilities for the model "cub00"

Syntax

gr_prob_cub
varname
[if] [in]
[weight],
[
shelter(#)
prob(stub)
save_graph(filename)
outname(name)
]

fweights and pweights are allowed;
see weight.

Description

gr_prob_cub estimates the model cub00 (see cub) and generates the predicted probabilities of the ordinal outcome variable varname.

Options

shelter(#) specifies the "shelter", i.e. the category presenting an exceptional high frequency.

prob(stub) generates the variable named stub containing the predicted probabilities of the ordinal outcome variable.

save_graph(filename) saves the graph plotting the actual and predicted probabilities.

outname(name) allows to provide a customized name to the outcome's name appearing in the graph.

Returns

As e-return object, this command returns a matrix e(M) with columns equal to the actual and the predicted probabilities of every category of varname.

Example

********************************************************************************
* LOAD THE DATASET
********************************************************************************
. use universtata.dta , clear
********************************************************************************
* ESTIMATE "cub00", ESTIMATE AND GRAPH THE PREDICTED PROBABILITIES
********************************************************************************
. gr_prob_cub informat , prob(_PROB) save_graph(mygraph)
********************************************************************************

References

Piccolo, D., and Simone, R. 2019a. The class of CUB models: statistical foundations, inferential issues and empirical evidence. Statistical Methods & Applications, Vol. 28, pp. 389–435.

Piccolo, D., and Simone, R. 2019b. Rejoinder to the discussion of "The class of cub models: statistical foundations, inferential issues and empirical evidence". Statistical Methods & Applications, Vol. 28, Issue 3, pp. 477–493.

Baum, F.C., Cerulli, G., Di Iorio, F., Piccolo, D., Simone, R. 2018, The Stata module CUB for fitting mixture models for ordinal data. Presented at: "The 2018 Italian Stata Users Group meeting", Bologna, 15 November.

Piccolo, D. 2006. Observed information matrix for cub models. Quaderni di Statistica, Vol. 8.

Author

Giovanni Cerulli

IRCrES-CNR

Research Institute for Sustainable Economic Growth, National Research Council of Italy

E-mail: giovanni.cerulli@ircres.cnr.it

Acknowledgements

I wish to thank Kit Baum, Francesca Di Iorio, Domenico Piccolo, and Rosaria Simone for their help and suggestions in improving this work. I am also grateful to the organizers and participants to the 2018 Italian Stata Users Group meeting held in Bologna (Italy) on the 15th of November 2018.

Also see

Online: cub , pr_prob_cub , scattercub , glm