lba: An R Package for Latent Budget Analysis

The latent budget model is a mixture model for compositional data sets in which the entries, a contingency table, may be either realizations from a product multinomial distribution or distribution free. Based on this model, the latent budget analysis considers the interactions of two variables; the ex planatory (row) and the response (column) variables. The package lba uses expectation-maximization and active constraints method (ACM) to carry out, respectively, the maximum likelihood and the least squares estimation of the model parameters. It contains three main functions, lba which performs the analysis, goodnessfit for model selection and goodness of fit and the plotting functions plotcorr and plotlba used as a help in the interpretation of the results.

Enio G. Jelihovschi , Ivan Bezerra Allaman

Supplementary materials

Supplementary materials are available in addition to this article. It can be downloaded at

CRAN packages used

lba, alabama, plotrix, scatterplot3d, rgl, MASS

CRAN Task Views implied by cited packages

Graphics, Multivariate, Psychometrics, Distributions, Econometrics, Environmetrics, NumericalMathematics, Optimization, Robust, SocialSciences, SpatioTemporal


Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".


For attribution, please cite this work as

Jelihovschi & Allaman, "lba: An R Package for Latent Budget Analysis", The R Journal, 2018

BibTeX citation

  author = {Jelihovschi, Enio G. and Allaman, Ivan Bezerra},
  title = {lba: An R Package for Latent Budget Analysis},
  journal = {The R Journal},
  year = {2018},
  note = {},
  doi = {10.32614/RJ-2018-026},
  volume = {10},
  issue = {1},
  issn = {2073-4859},
  pages = {269-287}