IDEAS home Printed from https://ideas.repec.org/a/jss/jstsof/v026i01.html
   My bibliography  Save this article

An Implementation of Bayesian Adaptive Regression Splines (BARS) in C with S and R Wrappers

Author

Listed:
  • Wallstrom, Garrick
  • Liebner, Jeffrey
  • Kass, Robert E.

Abstract

BARS (DiMatteo, Genovese, and Kass 2001) uses the powerful reversible-jump MCMC engine to perform spline-based generalized nonparametric regression. It has been shown to work well in terms of having small mean-squared error in many examples (smaller than known competitors), as well as producing visually-appealing fits that are smooth (filtering out high-frequency noise) while adapting to sudden changes (retaining high-frequency signal). However, BARS is computationally intensive. The original implementation in S was too slow to be practical in certain situations, and was found to handle some data sets incorrectly. We have implemented BARS in C for the normal and Poisson cases, the latter being important in neurophysiological and other point-process applications. The C implementation includes all needed subroutines for fitting Poisson regression, manipulating B-splines (using code created by Bates and Venables), and finding starting values for Poisson regression (using code for density estimation created by Kooperberg). The code utilizes only freely-available external libraries (LAPACK and BLAS) and is otherwise self-contained. We have also provided wrappers so that BARS can be used easily within S or R.

Suggested Citation

  • Wallstrom, Garrick & Liebner, Jeffrey & Kass, Robert E., 2008. "An Implementation of Bayesian Adaptive Regression Splines (BARS) in C with S and R Wrappers," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 26(i01).
  • Handle: RePEc:jss:jstsof:v:026:i01
    DOI: http://hdl.handle.net/10.18637/jss.v026.i01
    as

    Download full text from publisher

    File URL: https://www.jstatsoft.org/index.php/jss/article/view/v026i01/v26i01.pdf
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v026i01/barsN.tar.gz
    Download Restriction: no

    File URL: https://www.jstatsoft.org/index.php/jss/article/downloadSuppFile/v026i01/barsP.tar.gz
    Download Restriction: no

    File URL: https://libkey.io/http://hdl.handle.net/10.18637/jss.v026.i01?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    Citations

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


    Cited by:

    1. Albarrán Lozano, Irene & Alonso, Pablo J. & Marín Díazaraque, Juan Miguel, 2010. "Non-linear models of disability and age applied to census data," DES - Working Papers. Statistics and Econometrics. WS ws102410, Universidad Carlos III de Madrid. Departamento de Estadística.
    2. E. Zanini & E. Eastoe & M. J. Jones & D. Randell & P. Jonathan, 2020. "Flexible covariate representations for extremes," Environmetrics, John Wiley & Sons, Ltd., vol. 31(5), August.
    3. Scheipl, Fabian & Kneib, Thomas, 2009. "Locally adaptive Bayesian P-splines with a Normal-Exponential-Gamma prior," Computational Statistics & Data Analysis, Elsevier, vol. 53(10), pages 3533-3552, August.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    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:026:i01. See general information about how to correct material in RePEc.

    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.

    We have no bibliographic references for this item. You can help adding them by using 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.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F. Baum (email available below). General contact details of provider: http://www.jstatsoft.org/ .

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

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.