Learn R Programming

⚠️There's a newer version (6.2.0) of this package.Take me there.

fda (version 2.4.8.1)

Functional Data Analysis

Description

These functions were developed to support functional data analysis as described in Ramsay, J. O. and Silverman, B. W. (2005) Functional Data Analysis. New York: Springer. They were ported from earlier versions in Matlab and S-PLUS. An introduction appears in Ramsay, J. O., Hooker, Giles, and Graves, Spencer (2009) Functional Data Analysis with R and Matlab (Springer). The package includes data sets and script files working many examples including all but one of the 76 figures in this latter book. Matlab versions of the code and sample analyses are no longer distributed through CRAN, as they were when the book was published. For those, ftp from There you find a set of .zip files containing the functions and sample analyses, as well as two .txt files giving instructions for installation and some additional information. The changes from Version 2.4.1 are fixes of bugs in density.fd and removal of functions create.polynomial.basis, polynompen, and polynomial. These were deleted because the monomial basis does the same thing and because there were errors in the code.

Copy Link

Version

Install

install.packages('fda')

Monthly Downloads

17,533

Version

2.4.8.1

License

GPL (>= 2)

Maintainer

S by Jim Ramsey

Last Published

February 19th, 2020

Functions in fda (2.4.8.1)

CanadianWeather

Canadian average annual weather cycle
MontrealTemp

Montreal Daily Temperature
CRAN

Test if running as CRAN
CSTR

Continuously Stirred Tank Reactor
AmpPhaseDecomp

Decomposition for Amplitude and Phase Variation
as.POSIXct1970

as.POXIXct for number of seconds since the start of 1970.
Eigen

Eigenanalysis preserving dimnames
Data2fd

Create a functional data object from data
Lfd

Define a Linear Differential Operator Object
Fstat.fd

F-statistic for functional linear regression.
Fperm.fd

Permutation F-test for functional linear regression.
ReginaPrecip

Regina Daily Precipitation
axisIntervals

Mark Intervals on a Plot Axis
bifdPar

Define a Bivariate Functional Parameter Object
as.fd

Convert a spline object to class 'fd'
checkDims3

Compare dimensions and dimnames of arrays
create.basis

Create Basis Set for Functional Data Analysis
bifd

Create a bivariate functional data object
arithmetic.basisfd

Arithmatic on functional basis objects
TaylorSpline

Taylor representation of a B-Spline
create.polygonal.basis

Create a Polygonal Basis
checkLogicalInteger

Does an argument satisfy required conditions?
StatSciChinese

Statistical Science in Chinese
eval.bifd

Values a Two-argument Functional Data Object
as.array3

Reshape a vector or array to have 3 dimensions.
argvalsy.swap

Swap argvals with y if the latter is simpler.
eval.basis

Values of Basis Functions or their Derivatives
create.power.basis

Create a Power Basis Object
arithmetic.fd

Arithmetic on functional data ('fd') objects
create.bspline.basis

Create a B-spline Basis
bsplinepen

B-Spline Penalty Matrix
basisfd

Define a Functional Basis Object
bsplineS

B-spline Basis Function Values
basisfd.product

Product of two basisfd objects
center.fd

Center Functional Data
create.constant.basis

Create a Constant Basis
cca.fd

Functional Canonical Correlation Analysis
create.exponential.basis

Create an Exponential Basis
dirs

Get subdirectories
cycleplot.fd

Plot Cycles for a Periodic Bivariate Functional Data Object
cor.fd

Correlation matrix from functional data object(s)
evaldiag.bifd

Evaluate the Diagonal of a Bivariate Functional Data Object
create.fourier.basis

Create a Fourier Basis
density.fd

Compute a Probability Density Function
eval.fd

Values of a Functional Data Object
eval.monfd

Values of a Monotone Functional Data Object
eigen.pda

Stability Analysis for Principle Differential Analysis
coef.fd

Extract functional coefficients
dateAccessories

Numeric and character vectors to facilitate working with dates
expon

Exponential Basis Function Values
deriv.fd

Compute a Derivative of a Functional Data Object
fRegress.stderr

Compute Standard errors of Coefficient Functions Estimated by Functional Regression Analysis
fd

Define a Functional Data Object
fbplot

Functional Boxplots
create.monomial.basis

Create a Monomial Basis
df.residual.fRegress

Degress of Freedom for Residuals from a Functional Regression
eval.penalty

Evaluate a Basis Penalty Matrix
fd2list

Convert a univariate functional data object to s list
infantGrowth

Tibia Length for One Baby
handwrit

Cursive handwriting samples
fRegress.CV

Computes Cross-validated Error Sum of Integrated Squared Errors for a Functional Regression Model
growth

Berkeley Growth Study data
fRegress

Functional Regression Analysis
is.fd

Confirm Object has Class "fd"
fourierpen

Fourier Penalty Matrix
fdaMatlabPath

Add 'fdaM' to the Matlab path
fda-package

Functional Data Analysis in R
gait

Hip and knee angle while walking
fdPar

Define a Functional Parameter Object
is.fdPar

Confirm Object has Class "fdPar"
intensity.fd

Intensity Function for Point Process
fdlabels

Extract plot labels and names for replicates and variables
eval.posfd

Evaluate a Positive Functional Data Object
is.Lfd

Confirm Object has Class "Lfd"
df2lambda

Convert Degrees of Freedom to a Smoothing Parameter Value
inprod.bspline

Compute Inner Products B-spline Expansions.
lambda2df

Convert Smoothing Parameter to Degrees of Freedom
getbasispenalty

Evaluate a Roughness Penalty Matrix
exponentiate.fd

Powers of a functional data ('fd') object
landmarkreg

Landmark Registration of Functional Observations
landmark.reg.expData

Experiment data for landmark registration and alignment
monomialpen

Evaluate Monomial Roughness Penalty Matrix
monomial

Evaluate Monomial Basis
is.fdSmooth

Confirm Object has Class "fdSmooth"
file.copy2

Copy a file with a default 'to' name
getbasisrange

Extract the range from a basis object
fourier

Fourier Basis Function Values
getbasismatrix

Values of Basis Functions or their Derivatives
geigen

Generalized eigenanalysis
lambda2gcv

Compute GCV Criterion
is.basis

Confirm Object is Class "Basisfd"
knots.fd

Extract the knots from a function basis or data object
melanoma

melanoma 1936-1972
inprod

Inner products of Functional Data Objects.
monfn

Evaluates a monotone function
lmWinsor12

Support functions for lmWinsor
lines.fd

Add Lines from Functional Data to a Plot
int2Lfd

Convert Integer to Linear Differential Operator
exponpen

Exponential Penalty Matrix
pda.fd

Principal Differential Analysis
pda.overlay

Stability Analysis for Principle Differential Analysis
lmeWinsor

Winsorized Regression with mixed effects
plot.cca.fd

Plot Functional Canonical Correlation Weight Functions
plot.fd

Plot a Functional Data Object
matplot

Plot Columns of Matrices
predict.lmWinsor

Predict method for Winsorized linear model fits
nondurables

Nondurable goods index
polyg

Polygonal Basis Function Values
predict.fRegress

Predict method for Functional Regression
polygpen

Polygonal Penalty Matrix
is.eqbasis

Confirm that two objects of class "Basisfd" are identical
plotscores

Plot Principal Component Scores
linmod

Fit Fully Functional Linear Model
seabird

Sea Bird Counts
smooth.basis

Construct a functional data object by smoothing data using a roughness penalty
lmWinsor

Winsorized Regression
pca.fd

Functional Principal Components Analysis
onechild

growth in height of one 10-year-old boy
mean.fd

Mean of Functional Data
lip

Lip motion
powerpen

Power Penalty Matrix
plotfit

Plot a Functional Data Object With Data
odesolv

Numerical Solution mth Order Differential Equation System
phaseplanePlot

Phase-plane plot
objAndNames

Add names to an object
powerbasis

Power Basis Function Values
plot.lmWinsor

lmWinsor plot
residuals.fRegress

Residuals from a Functional Regression
pinch

pinch force data
ppBspline

Convert a B-spline function to piece-wise polynomial form
plot.Lfd

Plot a Linear Differential Operator Object
plotreg.fd

Plot the results of the registration of a set of curves
plot.pda.fd

Plot Principle Differential Analysis Components
norder

Order of a B-spline
sd.fd

Standard Deviation of Functional Data
summary.fdPar

Summarize a Functional Parameter Object
plot.basisfd

Plot a Basis Object
predict.lmeWinsor

Predict method for Winsorized linear model fits with mixed effects
plotbeta

Plot a functional parameter object with confidence limits
quadset

Quadrature points and weights for Simpson's rule
project.basis

Approximate Functional Data Using a Basis
plot.pca.fd

Plot Functional Principal Components
refinery

Reflux and tray level in a refinery
smooth.fd

Smooth a Functional Data Object Using an Indirectly Specified Roughness Penalty
smooth.fdPar

Smooth a functional data object using a directly specified roughness penalty
register.fd

Register Functional Data Objects Using a Continuous Criterion
summary.bifd

Summarize a Bivariate Functional Data Object
zerofind

Does the range of the input contain 0?
summary.Lfd

Summarize a Linear Differential Operator Object
summary.basisfd

Summarize a Functional Data Object
readHMD

Download data from the Human Mortality Database (HMD)
svd2

singular value decomposition with automatic error handling
smooth.basisPar

Smooth Data Using a Directly Specified Roughness Penalty
register.fd0

Correct for initial position error between functional data objects.
summary.fd

Summarize a Functional Data Object
register.newfd

Register Functional Data Objects with Pre-Computed Warping Functions
wtcheck

Check a vector of weights
var.fd

Variance, Covariance, and Correlation Surfaces for Functional Data Object(s)
smooth.morph

Estimates a Smooth Warping Function
vec2Lfd

Make a Linear Differential Operator Object from a Vector
symsolve

solve(A, B) where A is symmetric
tperm.fd

Permutation t-test for two groups of functional data objects.
smooth.monotone

Monotone Smoothing of Data
varmx

Rotate a Matrix of Component Loadings using the VARIMAX Criterion
smooth.bibasis

Smooth a discrete surface over a rectangular lattice
smooth.pos

Smooth Data with a Positive Function
varmx.cca.fd

Rotation of Functional Canonical Components with VARIMAX
sum.fd

Sum of Functional Data
varmx.pca.fd

Rotation of Functional Principal Components with VARIMAX Criterion