Functional Data Analysis for Density Functions by Transformation to a Hilbert Space

An implementation of the methodology described in Petersen and Mueller (2016) for the functional data analysis of samples of density functions. Densities are first transformed to their corresponding log quantile densities, followed by ordinary Functional Principal Components Analysis (FPCA). Transformation modes of variation yield improved interpretation of the variability in the data as compared to FPCA on the densities themselves. The standard fraction of variance explained (FVE) criterion commonly used for functional data is adapted to the transformation setting, also allowing for an alternative quantification of variability for density data through the Wasserstein metric of optimal transport.

Testing version of fdadensity

What is this repository for?

This is R package implementation of the methodology proposed by Petersen & Mueller in the manuscript: "Functional Data Analysis for Density Functions by Transformation to a Hilbert space".

How do I get set up?

Assuming you can see this you should have access to this repo. Therefore just use clone the repo and then use devtools with load_all() to load the file. It should automatically compile the functions needed and get you going at no time (ie. devtools::load_all('folder_you_cloned_all_this_stuff'))

But I just want to install it...

You can install the package in R using:


Once installed you can load the package with:


Who do I talk to if I want somethig fixed/changed/added?

You can message Pantelis.


Reference manual

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


0.1.1 by Alexander Petersen, a year ago

Report a bug at

Browse source code at

Authors: A. Petersen , P. Z. Hadjipantelis and H.G. Mueller

Documentation:   PDF Manual  

Task views: Functional Data Analysis

BSD_3_clause + file LICENSE license

Imports Rcpp, fdapace

Suggests testthat

Linking to Rcpp

See at CRAN