IDEAS home Printed from
   My bibliography  Save this article

BB: An R Package for Solving a Large System of Nonlinear Equations and for Optimizing a High-Dimensional Nonlinear Objective Function


  • Varadhan, Ravi
  • Gilbert, Paul


We discuss R package BB, in particular, its capabilities for solving a nonlinear system of equations. The function BBsolve in BB can be used for this purpose. We demonstrate the utility of these functions for solving: (a) large systems of nonlinear equations, (b) smooth, nonlinear estimating equations in statistical modeling, and (c) non-smooth estimating equations arising in rank-based regression modeling of censored failure time data. The function BBoptim can be used to solve smooth, box-constrained optimization problems. A main strength of BB is that, due to its low memory and storage requirements, it is ideally suited for solving high-dimensional problems with thousands of variables.

Suggested Citation

  • Varadhan, Ravi & Gilbert, Paul, 2009. "BB: An R Package for Solving a Large System of Nonlinear Equations and for Optimizing a High-Dimensional Nonlinear Objective Function," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 32(i04).
  • Handle: RePEc:jss:jstsof:v:032:i04

    Download full text from publisher

    File URL:
    Download Restriction: no

    File URL:
    Download Restriction: no

    File URL:
    Download Restriction: no

    References listed on IDEAS

    1. Ravi Varadhan & Christophe Roland, 2008. "Simple and Globally Convergent Methods for Accelerating the Convergence of Any EM Algorithm," Scandinavian Journal of Statistics, Danish Society for Theoretical Statistics;Finnish Statistical Society;Norwegian Statistical Association;Swedish Statistical Association, vol. 35(2), pages 335-353, June.
    2. Zhezhen Jin, 2003. "Rank-based inference for the accelerated failure time model," Biometrika, Biometrika Trust, vol. 90(2), pages 341-353, June.
    Full references (including those not matched with items on IDEAS)


    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.

    Cited by:

    1. Robert Vlacuha & Boris Frankovic, 2015. "The Calibration of Weights by Calif Tool in the Practice of the Statistical Office of the Slovak Republic," Romanian Statistical Review, Romanian Statistical Review, vol. 63(2), pages 153-164, June.
    2. HaiYing Wang & Nancy Flournoy & Eloi Kpamegan, 2014. "A new bounded log-linear regression model," Metrika: International Journal for Theoretical and Applied Statistics, Springer, vol. 77(5), pages 695-720, July.
    3. Georgios Digkas & Konstantinos Petridis & Alexander Chatzigeorgiou & Emmanouil Stiakakis & Ali Emrouznejad, 2020. "Measuring Spatio-temporal Efficiency: An R Implementation for Time-Evolving Units," Computational Economics, Springer;Society for Computational Economics, vol. 56(4), pages 843-864, December.
    4. Nathan H. Miller & Matthew Osborne, 2014. "Spatial differentiation and price discrimination in the cement industry: evidence from a structural model," RAND Journal of Economics, RAND Corporation, vol. 45(2), pages 221-247, June.
    5. OUATTARA, Aboudou & DE LA BRUSLERIE, Hubert, 2015. "The term structure of psychological discount rate: characteristics and functional forms," MPRA Paper 75111, University Library of Munich, Germany.
    6. Galea, Manuel & de Castro, Mário, 2017. "Robust inference in a linear functional model with replications using the t distribution," Journal of Multivariate Analysis, Elsevier, vol. 160(C), pages 134-145.
    7. Ola L{o}vsletten & Martin Rypdal, 2012. "A multifractal approach towards inference in finance," Papers 1202.5376,
    8. Predrag M. Popović & Miroslav M. Ristić & Aleksandar S. Nastić, 2016. "A geometric bivariate time series with different marginal parameters," Statistical Papers, Springer, vol. 57(3), pages 731-753, September.
    9. Victor Aguirregabiria & Mathieu Marcoux, 2019. "Imposing equilibrium restrictions in the estimation of dynamic discrete games," Working Papers tecipa-646, University of Toronto, Department of Economics.
    10. Sy Han Chiou & Gongjun Xu & Jun Yan & Chiung‐Yu Huang, 2018. "Semiparametric estimation of the accelerated mean model with panel count data under informative examination times," Biometrics, The International Biometric Society, vol. 74(3), pages 944-953, September.
    11. Gauss M. Cordeiro & Maria do Carmo S. Lima & Antonio E. Gomes & Cibele Q. da-Silva & Edwin M. M. Ortega, 2016. "The gamma extended Weibull distribution," Journal of Statistical Distributions and Applications, Springer, vol. 3(1), pages 1-19, December.
    12. Božidar Popović & Saralees Nadarajah & Miroslav Ristić, 2013. "A new non-linear AR(1) time series model having approximate beta marginals," Metrika: International Journal for Theoretical and Applied Statistics, Springer, vol. 76(1), pages 71-92, January.
    13. Alai, Daniel H. & Landsman, Zinoviy & Sherris, Michael, 2013. "Lifetime dependence modelling using a truncated multivariate gamma distribution," Insurance: Mathematics and Economics, Elsevier, vol. 52(3), pages 542-549.
    14. Varadhan, Ravi, 2014. "Numerical Optimization in R: Beyond optim," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 60(i01).
    15. Daniel Alai & Zinoviy Landsman & Michael Sherris, 2012. "Lifetime Dependence Modelling using the Truncated Multivariate Gamma Distribution," Working Papers 201211, ARC Centre of Excellence in Population Ageing Research (CEPAR), Australian School of Business, University of New South Wales.
    16. José-Alberto Guerra & Myra Mohnen, 2017. "Multinomial choice with social interactions: occupations in Victorian London," Documentos CEDE 015667, Universidad de los Andes - CEDE.
    17. Gzyl, Henryk & ter Horst, Enrique & Molina, German, 2015. "A spectral measure estimation problem in rheology," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 434(C), pages 129-133.
    18. Bruno Ebner & Bernhard Klar & Simos G. Meintanis, 2018. "Fourier inference for stochastic volatility models with heavy-tailed innovations," Statistical Papers, Springer, vol. 59(3), pages 1043-1060, September.

    More about this item


    Access and download statistics


    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:jss:jstsof:v:032:i04. See general information about how to correct material in RePEc.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: (Christopher F. Baum). General contact details of provider: .

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service hosted by the Research Division of the Federal Reserve Bank of St. Louis . RePEc uses bibliographic data supplied by the respective publishers.