Learn R Programming

The R package 'fBasics' provides a collection of functions to explore and to investigate basic properties of financial returns and related quantities. The covered fields include techniques of explorative data analysis and the investigation of distributional properties, including parameter estimation and hypothesis testing. Even more there are several utility functions for data handling and management.

Package fBasics is part of the Rmetrics suite of R packages and is developed on R-forge at fBasics. The root of Rmetrics is at R-forge.

Installing fBasics

Install the latest stable version of fBasics from CRAN:

install.packages("fBasics")

You can install the development version of fBasics from R-forge:

install.packages("fBasics", repos = "http://R-Forge.R-project.org")

To report bugs visit Rmetrics.

Documentation

You can view the documentation of fBasics at fBasicsDoc or download the reference manual of the latest release from CRAN.

Copy Link

Version

Install

install.packages('fBasics')

Monthly Downloads

38,122

Version

4052.98

License

GPL (>= 2)

Maintainer

Georgi Boshnakov

Last Published

December 7th, 2025

Functions in fBasics (4052.98)

fBasicsData

fBasics data sets
ghRobMoments

Robust Moments for the GH
ghFit

GH Distribution Fit
gh

Generalized Hyperbolic Distribution
baseMethods

Generic functions extensions
gldFit

GH Distribution Fit
ghtMoments

Generalized Hyperbolic Student-t Moments
gld

Generalized Lambda Distribution
ghtRobMoments

Robust Moments for the GHT
ghtMode

Generalized Hyperbolic Student-t Mode
ghSlider

Generalized Hyperbolic Distribution Slider
nig

Normal Inverse Gaussian Distribution
hypMoments

Hyperbolic distribution moments
nigFit

Fit of a Normal Inverse Gaussian Distribution
ghtFit

GHT distribution fit
nigMode

Normal Inverse Gaussian Mode
ght

Generalized Hyperbolic Student-t distribution
hypSlider

Hyperbolic distribution slider
nigRobMoments

Robust Moments for the NIG
hyp

Hyperbolic distribution
nigMoments

Moments for the Normal Inverse Gaussian
nigShapeTriangle

NIG Shape Triangle
sghFit

Standardized GH distribution fit
hypRobMoments

Robust moments for the HYP
hypMode

Hyperbolic mode
snigFit

Fit of a Standardized NIG Distribution
sgh

Standardized Generalized Hyperbolic Distribution
hypFit

Fit a hyperbolic distribution
fHTEST-class

Class "fHTEST"
nigSlider

nigerbolic Distribution Slider
normRobMoments

Robust moments for the Normal distribution
inv

The inverse of a matrix
kron

Kronecker product
ssd

Spline Smoothed Distribution
gldMode

Generalized Lambda Distribution Mode
sght

Standardized generalized hyperbolic Student-t Distribution
fBasics_reexports

Objects exported from other packages
snig

Standardized Normal Inverse Gaussian Distribution
rk

The rank of a matrix
colVec

Column and row vectors
gridVector

Grid vector coordinates
ScalingLawPlot

Scaling law behaviour
gldRobMoments

Robust Moments for the GLD
pdl

Polynomial distributed lags
fDISTFIT-class

Class "fDISTFIT"
tr

Trace of a matrix
StableSlider

Slider GUI for Stable Distribution
BoxPlot

Time series box plots
positiveDefinite

Positive definite matrices
HistogramPlot

Histogram and density plots
hilbert

Hilbert matrix
vec

Stacking vectors and matrices
pascal

Pascal matrix
akimaInterp

Bivariate Spline Interpolation
norm

Matrix norm
linearInterp

Bivariate Linear Interpolation
rowStats

Row statistics
krigeInterp

Bivariate Krige Interpolation
sampleLMoments

Sample L-moments
correlationTest

Correlation tests
acfPlot

Autocorrelation function plots
BasicStatistics

Basic time series statistics
maxdd

Drawdown statistics
decor

Functions for decorating plots
colorTable

Table of colors
tsHessian

Two sided approximated Hessian
getS4

General S4 Class Extractor Functions
sampleRobMoments

Robust moments for the GLD
ssdFit

Fit density using smoothing splines
colorLocator

Named colors in R
ks2Test

Two sample Kolmogorov-Smirnov test
locationTest

Two sample location tests
TimeSeriesPlots

Financial time series plots
colorPalette

Color palettes
varianceTest

Two sample variance tests
Heaviside

Heaviside and related functions
interactivePlot

Interactive Plot Utility
print

Print control
listFunctions

List exported functions in a package
lcg

Generator for Portable random innovations
fBasics-deprecated

Deprecated functions in package fBasics
tslag

Lagged or leading vector/matrix
triang

Upper and lower triangular matrices
characterTable

Table of characters
Ids

Set and retrieve column/row names
symbolTable

Table of symbols
ReturnSeriesGUI

Return series plots
scaleTest

Two sample scale tests
QuantileQuantilePlots

Quantile-quantile plots
NormalityTests

Tests for normality
volatility

Compute volatility
ghMoments

Generalized Hyperbolic Distribution Moments
ghMode

Generalized Hyperbolic Mode
distCheck

Distribution check
DistributionFits

Fit normal, Student-t and stable distributions
fBasics-package

Portfolio modelling, optimization and backtesting