Bayesian Nonparametric Spectral Density Estimation Using B-Spline Priors

Implementation of a Metropolis-within-Gibbs MCMC algorithm to flexibly estimate the spectral density of a stationary time series. The algorithm updates a nonparametric B-spline prior using the Whittle likelihood to produce pseudo-posterior samples and is based on the work presented in Edwards, M.C., Meyer, R. and Christensen, N., Statistics and Computing (2018). .


Why should I use bsplinePsd?

This package allows the user to flexibly estimate the spectral density of a stationary time series using a Bayesian nonparametric B-spline prior (of any degree). It works particularly well for complicated spectral structures (compared to the Bernstein polynomial prior).

How do I use bsplinePsd?

The primary function gibbs_bspline is straightforward to use. Most of the arguments are defaults (i.e., a noninformative prior). All you need to do is input a numeric vector (your time series), the number of iterations to run the MCMC algorithm for, and the amount of burn-in.

How do I get bsplinePsd?

Download from CRAN. Use install.packages("bsplinePsd") in R.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("bsplinePsd")

0.6.0 by Matthew C. Edwards, 8 years ago


Browse source code at https://github.com/cran/bsplinePsd


Authors: Matthew C. Edwards [aut, cre] , Renate Meyer [aut] , Nelson Christensen [aut]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports Rcpp, splines

Linking to Rcpp


See at CRAN