Learn R Programming

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

fda (version 6.0.5)

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 and 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 are available by ftp from .

Copy Link

Version

Install

install.packages('fda')

Monthly Downloads

17,533

Version

6.0.5

License

GPL (>= 2)

Maintainer

S by Jim Ramsey

Last Published

July 4th, 2022

Functions in fda (6.0.5)

Data2fd

Create a functional data object from data
ElectricDemand

Predicting electricity demand in Adelaide from temperature
CRAN

Test if running as CRAN
CanadianWeather

Canadian average annual weather cycle
Fstat.fd

F-statistic for functional linear regression.
Lfd

Define a Linear Differential Operator Object
AmpPhaseDecomp

Decomposition for Amplitude and Phase Variation
Fperm.fd

Permutation F-test for functional linear regression.
CSTR

Continuously Stirred Tank Reactor
Eigen

Eigenanalysis preserving dimnames
as.array3

Reshape a vector or array to have 3 dimensions.
axisIntervals

Mark Intervals on a Plot Axis
as.fd

Convert a spline object to class 'fd'
MontrealTemp

Montreal Daily Temperature
StatSciChinese

Statistical Science in Chinese
arithmetic.basisfd

Arithmatic on functional basis objects
arithmetic.fd

Arithmetic on functional data ('fd') objects
as.POSIXct1970

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

Regina Daily Precipitation
bifdPar

Define a Bivariate Functional Parameter Object
basisfd.product

Product of two basisfd objects
bsplineS

B-spline Basis Function Values
coef.fd

Extract functional coefficients
checkLogicalInteger

Does an argument satisfy required conditions?
bifd

Create a bivariate functional data object
checkDims3

Compare dimensions and dimnames of arrays
center.fd

Center Functional Data
basisfd

Define a Functional Basis Object
cca.fd

Functional Canonical Correlation Analysis
create.polygonal.basis

Create a Polygonal Basis
cor.fd

Correlation matrix from functional data object(s)
create.constant.basis

Create a Constant Basis
bsplinepen

B-Spline Penalty Matrix
create.basis

Create Basis Set for Functional Data Analysis
create.power.basis

Create a Power Basis Object
create.monomial.basis

Create a Monomial Basis
create.fourier.basis

Create a Fourier Basis
create.exponential.basis

Create an Exponential Basis
covPACE

Estimate of the covariance surface
df2lambda

Convert Degrees of Freedom to a Smoothing Parameter Value
create.bspline.basis

Create a B-spline Basis
eval.basis

Values of Basis Functions or their Derivatives
eigen.pda

Stability Analysis for Principle Differential Analysis
dateAccessories

Numeric and character vectors to facilitate working with dates
density.fd

Compute a Probability Density Function
deriv.fd

Compute a Derivative of a Functional Data Object
eval.surp

Values of a Functional Data Object Defining Surprisal Curves.
eval.posfd

Evaluate a Positive Functional Data Object
dirs

Get subdirectories
cumfd

Compute a Cumulative Distribution Functional Data Object
eval.bifd

Values a Two-argument Functional Data Object
df.residual.fRegress

Degrees of Freedom for Residuals from a Functional Regression
eval.fd

Values of a Functional Data Object
expon

Exponential Basis Function Values
evaldiag.bifd

Evaluate the Diagonal of a Bivariate Functional Data Object
exponentiate.fd

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

Exponential Penalty Matrix
cycleplot.fd

Plot Cycles for a Periodic Bivariate Functional Data Object
fd

Define a Functional Data Object
fRegress

Functional Regression Analysis
fRegress.CV

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

Define a Functional Parameter Object
fdParcheck

Convert fd or basisfd Objects to fdPar Objects
handwrit

Cursive handwriting samples
fd2list

Convert a univariate functional data object to a list
gait

Hip and knee angle while walking
infantGrowth

Tibia Length for One Baby
fdlabels

Extract plot labels and names for replicates and variables
fda-package

Functional Data Analysis in R
fourier

Fourier Basis Function Values
is.Lfd

Confirm Object has Class "Lfd"
is.basis

Confirm Object is Class "Basisfd"
geigen

Generalized eigenanalysis
inprod.bspline

Compute Inner Products B-spline Expansions.
inprod

Inner products of Functional Data Objects.
growth

Berkeley Growth Study data
getbasisrange

Extract the range from a basis object
is.eqbasis

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

Fourier Penalty Matrix
is.fdPar

Confirm Object has Class "fdPar"
is.fd

Confirm Object has Class "fd"
is.fdSmooth

Confirm Object has Class "fdSmooth"
matplot

Plot Columns of Matrices
intensity.fd

Intensity Function for Point Process
int2Lfd

Convert Integer to Linear Differential Operator
eval.monfd

Values of a Monotone Functional Data Object
mean.fd

Mean of Functional Data
eval.penalty

Evaluate a Basis Penalty Matrix
knots.fd

Extract the knots from a function basis or data object
lambda2df

Convert Smoothing Parameter to Degrees of Freedom
mongrad

Evaluate the gradient of a monotone function
fRegress.stderr

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

Evaluate Monomial Basis
monhess

Evaluate the Hessian matrix of a monotone function
pinch

pinch force data
lip

Lip motion
monomialpen

Evaluate Monomial Roughness Penalty Matrix
phaseplanePlot

Phase-plane plot
lnsrch

Search along a line for a minimum within an optimisation algorithm.
plot.basisfd

Plot a Basis Object
plot.Lfd

Plot a Linear Differential Operator Object
melanoma

melanoma 1936-1972
plot.pca.fd

Plot Functional Principal Components
fbplot

Functional Boxplots
monfn

Evaluate the a monotone function
plot.pda.fd

Plot Principle Differential Analysis Components
polintmat

Polynomial extrapolation for a converging sequence of one or more values
polyg

Polygonal Basis Function Values
scoresPACE

Estimates of functional Principal Component scores through PACE
getbasismatrix

Values of Basis Functions or their Derivatives
lines.fd

Add Lines from Functional Data to a Plot
getbasispenalty

Evaluate a Roughness Penalty Matrix
sd.fd

Standard Deviation of Functional Data
predict.fRegress

Predict method for Functional Regression
pcaPACE

Estimate the functional principal components
pca.fd

Functional Principal Components Analysis
project.basis

Approximate Functional Data Using a Basis
register.newfd

Register Functional Data Objects with Pre-Computed Warping Functions
register.fd

Register Functional Data Objects Using a Continuous Criterion
quadset

Quadrature points and weights for Simpson's rule
powerbasis

Power Basis Function Values
polygpen

Polygonal Penalty Matrix
objAndNames

Add names to an object
linmod

Fit Fully Functional Linear Model
smooth.morph

Estimates a Smooth Warping Function Mapping an Interval into Another
odesolv

Numerical Solution mth Order Differential Equation System
seabird

Sea Bird Counts
lambda2gcv

Compute GCV Criterion
landmarkreg

Landmark Registration of Functional Observations with Differing Ranges
nondurables

Nondurable goods index
sum.fd

Sum of Functional Data
smooth.basis

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

Approximate the functional inner product of two functional data objects using the trapezpoidal rule over a fine mesh of value.
tperm.fd

Permutation t-test for two groups of functional data objects.
summary.fdPar

Summarize a Functional Parameter Object
summary.Lfd

Summarize a Linear Differential Operator Object
summary.fd

Summarize a Functional Data Object
reconsCurves

Reconstruct data curves using functional principal components
pda.fd

Principal Differential Analysis
norder

Order of a B-spline
smooth.fd

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

Smooth a discrete surface over a rectangular lattice
plot.cca.fd

Plot Functional Canonical Correlation Weight Functions
pda.overlay

Stability Analysis for Principle Differential Analysis
smooth.pos

Smooth Data with a Positive Function
plotbeta

Plot a functional parameter object with confidence limits
plot.fd

Plot a Functional Data Object
plotfit

Plot a Functional Data Object With Data
wtcheck

Check a vector of weights
vec2Lfd

Make a Linear Differential Operator Object from a Vector
stepchk

Check a step size value for being within parameter limits.
plotreg.fd

Plot the results of the registration of a set of curves
smooth.monotone

Monotone Smoothing of Data
smooth.fdPar

Smooth a functional data object using a directly specified roughness penalty
smooth.sparse.mean

Smooth the mean function of sparse data
smooth.surp

Fit data with surprisal smoothing.
summary.basisfd

Summarize a Functional Data Object
stepit

Compute a new step size for a linear search within an optimization algorithm.
plotscores

Plot Principal Component Scores
var.fd

Variance, Covariance, and Correlation Surfaces for Functional Data Object(s)
surp.fit

Evaluate the fit of surprisal curves to binned psychometric data.
varmx

Rotate a Matrix of Component Loadings using the VARIMAX Criterion
powerpen

Power Penalty Matrix
symsolve

solve(A, B) where A is symmetric
summary.bifd

Summarize a Bivariate Functional Data Object
smooth.basis.sparse

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

Convert a B-spline function to piece-wise polynomial form
sparse.list

Creates a list of sparse data from a matrix
sparse.mat

Creates a matrix of sparse data with NAs out of a list
varmx.cca.fd

Rotation of Functional Canonical Components with VARIMAX
smooth.basisPar

Smooth Data Using a Directly Specified Roughness Penalty
ycheck

Check Data Arrays for Smoothing Functions
varmx.pca.fd

Rotation of Functional Principal Components with VARIMAX Criterion
zerofind

Does the range of the input contain 0?
zerobasis

Orthonormal Matrix with Columns Summing to Zero