fda: Functional Data Analysis
Version 2.4.4

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 http://www.psych.mcgill.ca/misc/fda/downloads/FDAfuns/ 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.

AuthorJ. O. Ramsay <ramsay@psych.mcgill.ca>, Hadley Wickham <h.wickham@gmail.com>, Spencer Graves <spencer.graves@prodsyse.com>, Giles Hooker <gjh27@cornell.edu>
Date of publication2014-12-16 17:59:38
MaintainerJ. O. Ramsay <ramsay@psych.mcgill.ca>
LicenseGPL (>= 2)
Version2.4.4
URL http://www.functionaldata.org
Package repositoryView on CRAN
InstallationInstall the latest version of this package by entering the following in R:
install.packages("fda")

Getting started

Package overview

Popular man pages

as.array3: Reshape a vector or array to have 3 dimensions.
fbplot: Functional Boxplots
fourier: Fourier Basis Function Values
is.basis: Confirm Object is Class "Basisfd"
is.fdSmooth: Confirm Object has Class "fdSmooth"
nondurables: Nondurable goods index
quadset: Quadrature points and weights for Simpson's rule
See all...

All man pages Function index File listing

Man pages

AmpPhaseDecomp: Decomposition for Amplitude and Phase Variation
argvalsy.swap: Swap argvals with y if the latter is simpler.
arithmetic.basisfd: Arithmatic on functional basis objects
arithmetic.fd: Arithmetic on functional data ('fd') objects
as.array3: Reshape a vector or array to have 3 dimensions.
as.fd: Convert a spline object to class 'fd'
as.POSIXct1970: as.POXIXct for number of seconds since the start of 1970.
axisIntervals: Mark Intervals on a Plot Axis
basisfd: Define a Functional Basis Object
basisfd.product: Product of two basisfd objects
bifd: Create a bivariate functional data object
bifdPar: Define a Bivariate Functional Parameter Object
bsplinepen: B-Spline Penalty Matrix
bsplineS: B-spline Basis Function Values
CanadianWeather: Canadian average annual weather cycle
cca.fd: Functional Canonical Correlation Analysis
center.fd: Center Functional Data
checkDims3: Compare dimensions and dimnames of arrays
checkLogicalInteger: Does an argument satisfy required conditions?
coef: Extract functional coefficients
cor.fd: Correlation matrix from functional data object(s)
CRAN: Test if running as CRAN
create.basis: Create Basis Set for Functional Data Analysis
create.bspline.basis: Create a B-spline Basis
create.constant.basis: Create a Constant Basis
create.exponential.basis: Create an Exponential Basis
create.fourier.basis: Create a Fourier Basis
create.monomial.basis: Create a Monomial Basis
create.polygonal.basis: Create a Polygonal Basis
create.power.basis: Create a Power Basis Object
CSTR: Continuously Stirred Tank Reactor
cycleplot.fd: Plot Cycles for a Periodic Bivariate Functional Data Object
Data2fd: Create a functional data object from data
dateAccessories: Numeric and character vectors to facilitate working with...
density.fd: Compute a Probability Density Function
deriv.fd: Compute a Derivative of a Functional Data Object
df2lambda: Convert Degrees of Freedom to a Smoothing Parameter Value
df.residual.fRegress: Degress of Freedom for Residuals from a Functional Regression
dirs: Get subdirectories
Eigen: Eigenanalysis preserving dimnames
eigen.pda: Stability Analysis for Principle Differential Analysis
eval.basis: Values of Basis Functions or their Derivatives
eval.bifd: Values a Two-argument Functional Data Object
evaldiag.bifd: Evaluate the Diagonal of a Bivariate Functional Data Object
eval.fd: Values of a Functional Data Object
eval.monfd: Values of a Monotone Functional Data Object
eval.penalty: Evaluate a Basis Penalty Matrix
eval.posfd: Evaluate a Positive Functional Data Object
expon: Exponential Basis Function Values
exponentiate.fd: Powers of a functional data ('fd') object
exponpen: Exponential Penalty Matrix
fbplot: Functional Boxplots
fd: Define a Functional Data Object
fd2list: Convert a univariate functional data object to s list
fdaMatlabPath: Add 'fdaM' to the Matlab path
fda-package: Functional Data Analysis in R
fdlabels: Extract plot labels and names for replicates and variables
fdPar: Define a Functional Parameter Object
file.copy2: Copy a file with a default 'to' name
fourier: Fourier Basis Function Values
fourierpen: Fourier Penalty Matrix
Fperm.fd: Permutation F-test for functional linear regression.
fRegress: Functional Regression Analysis
fRegress.CV: Computes Cross-validated Error Sum of Integrated Squared...
fRegress.stderr: Compute Standard errors of Coefficient Functions Estimated by...
Fstat.fd: F-statistic for functional linear regression.
gait: Hip and knee angle while walking
geigen: Generalized eigenanalysis
getbasismatrix: Values of Basis Functions or their Derivatives
getbasispenalty: Evaluate a Roughness Penalty Matrix
getbasisrange: Extract the range from a basis object
growth: Berkeley Growth Study data
handwrit: Cursive handwriting samples
infantGrowth: Tibia Length for One Baby
inprod: Inner products of Functional Data Objects.
inprod.Bspline: Compute Inner Products B-spline Expansions.
int2Lfd: Convert Integer to Linear Differential Operator
intensity.fd: Intensity Function for Point Process
is.basis: Confirm Object is Class "Basisfd"
is.eqbasis: Confirm that two objects of class "Basisfd" are identical
is.fd: Confirm Object has Class "fd"
is.fdPar: Confirm Object has Class "fdPar"
is.fdSmooth: Confirm Object has Class "fdSmooth"
is.Lfd: Confirm Object has Class "Lfd"
knots.fd: Extract the knots from a function basis or data object
lambda2df: Convert Smoothing Parameter to Degrees of Freedom
lambda2gcv: Compute GCV Criterion
landmarkreg: Landmark Registration of Functional Observations
landmark.reg.expData: Experiment data for landmark registration and alignment
Lfd: Define a Linear Differential Operator Object
lines.fd: Add Lines from Functional Data to a Plot
linmod: Fit Fully Functional Linear Model
lip: Lip motion
lmeWinsor: Winsorized Regression with mixed effects
lmWinsor: Winsorized Regression
lmWinsor12: Support functions for lmWinsor
matplot: Plot Columns of Matrices
mean.fd: Mean of Functional Data
melanoma: melanoma 1936-1972
monfn: Evaluates a monotone function
monomial: Evaluate Monomial Basis
monomialpen: Evaluate Monomial Roughness Penalty Matrix
MontrealTemp: Montreal Daily Temperature
nondurables: Nondurable goods index
norder: Order of a B-spline
objAndNames: Add names to an object
odesolv: Numerical Solution mth Order Differential Equation System
onechild: growth in height of one 10-year-old boy
pca.fd: Functional Principal Components Analysis
pda.fd: Principal Differential Analysis
pda.overlay: Stability Analysis for Principle Differential Analysis
phaseplanePlot: Phase-plane plot
pinch: pinch force data
plot.basisfd: Plot a Basis Object
plotbeta: Plot a functional parameter object with confidence limits
plot.cca.fd: Plot Functional Canonical Correlation Weight Functions
plot.fd: Plot a Functional Data Object
plotfit.fd: Plot a Functional Data Object With Data
plot.Lfd: Plot a Linear Differential Operator Object
plot.lmWinsor: lmWinsor plot
plot.pca.fd: Plot Functional Principal Components
plot.pda.fd: Plot Principle Differential Analysis Components
plotreg.fd: Plot the results of the registration of a set of curves
plotscores: Plot Principal Component Scores
polyg: Polygonal Basis Function Values
polygpen: Polygonal Penalty Matrix
powerbasis: Power Basis Function Values
powerpen: Power Penalty Matrix
ppBspline: Convert a B-spline function to piece-wise polynomial form
predict.fRegress: Predict method for Functional Regression
predict.lmeWinsor: Predict method for Winsorized linear model fits with mixed...
predict.lmWinsor: Predict method for Winsorized linear model fits
project.basis: Approximate Functional Data Using a Basis
quadset: Quadrature points and weights for Simpson's rule
readHMD: Download data from the Human Mortality Database (HMD)
refinery: Reflux and tray level in a refinery
ReginaPrecip: Regina Daily Precipitation
register.fd: Register Functional Data Objects Using a Continuous Criterion
register.fd0: Correct for initial position error between functional data...
register.newfd: Register Functional Data Objects with Pre-Computed Warping...
resid.fRegress: Residuals from a Functional Regression
sd: Standard Deviation of Functional Data
seabird: Sea Bird Counts
smooth.basis: Construct a functional data object by smoothing data using a...
smooth.basisPar: Smooth Data Using a Directly Specified Roughness Penalty
smooth.bibasis: Smooth a discrete surface over a rectangular lattice
smooth.fd: Smooth a Functional Data Object Using an Indirectly Specified...
smooth.fdPar: Smooth a functional data object using a directly specified...
smooth.monotone: Monotone Smoothing of Data
smooth.morph: Estimates a Smooth Warping Function
smooth.pos: Smooth Data with a Positive Function
StatSciChinese: Statistical Science in Chinese
sum.fd: Sum of Functional Data
summary.basisfd: Summarize a Functional Data Object
summary.bifd: Summarize a Bivariate Functional Data Object
summary.fd: Summarize a Functional Data Object
summary.fdPar: Summarize a Functional Parameter Object
summary.Lfd: Summarize a Linear Differential Operator Object
svd2: singular value decomposition with automatic error handling
symsolve: solve(A, B) where A is symmetric
TaylorSpline: Taylor representation of a B-Spline
tperm.fd: Permutation t-test for two groups of functional data objects.
var.fd: Variance, Covariance, and Correlation Surfaces for Functional...
varmx: Rotate a Matrix of Component Loadings using the VARIMAX...
varmx.cca.fd: Rotation of Functional Canonical Components with VARIMAX
varmx.pca.fd: Rotation of Functional Principal Components with VARIMAX...
vec2Lfd: Make a Linear Differential Operator Object from a Vector
wtcheck: Check a vector of weights
zerofind: Does the range of the input contain 0?

Functions

Files

TODO
inst
inst/scripts
inst/scripts/fda-ch07.R
inst/scripts/fdarm-ch01.R
inst/scripts/fda-ch08.R
inst/scripts/afda-ch07.R
inst/scripts/fdarm-ch02.R
inst/scripts/afda-ch02.R
inst/scripts/afda-ch04.R
inst/scripts/fdarm-ch03.R
inst/scripts/afda-ch01.R
inst/scripts/fdarm-ch04.R
inst/scripts/fdarm-ch09.R
inst/scripts/fda-ch01.R
inst/scripts/fdarm-ch06.R
inst/scripts/afda-ch06.R
inst/scripts/fdarm-ch07.R
inst/scripts/fda-ch13.R
inst/scripts/afda-ch03.R
inst/scripts/fdarm-ch11.R
inst/scripts/fda-ch17.R
inst/scripts/fda-ch03.R
inst/scripts/fdarm-ch08.R
inst/scripts/fdarm-ch05.R
inst/scripts/fdarm-ch10.R
inst/scripts/fda-ch02.R
inst/scripts/afda-ch05.R
inst/Matlab
inst/Matlab/README
NAMESPACE
demo
demo/melanoma.R
demo/handwrit.pda.R
demo/create.test.R
demo/weatherstats.R
demo/canadian-weather.R
demo/fdarm.R
demo/handwrit.R
demo/gait.R
demo/weathersetup.R
demo/weatherlm.R
demo/growthsetup.R
demo/growthsmooth.R
demo/weathersmooth.R
demo/weatherPCA.R
demo/00Index
demo/lip.R
demo/growth.R
demo/goodsindex.R
demo/examples.R
demo/weatherANOVA.R
demo/pinch.R
demo/refinery.R
demo/growthreg.R
CHANGELOG
NEWS
data
data/infantGrowth.rda
data/melanoma.rda
data/MontrealTemp.rda
data/onechild.rda
data/dateAccessories.rda
data/growth.rda
data/pinchraw.rda
data/pinch.rda
data/handwrit.rda
data/daily.rda
data/ReginaPrecip.rda
data/landmark.reg.expData.rda
data/gait.rda
data/CanadianWeather.rda
data/seabird.rda
data/nondurables.rda
data/refinery.rda
data/StatSciChinese.rda
data/lip.rda
R
R/Eigen.R
R/register.fd0.R
R/exponpen.R
R/phaseplanePlot.R
R/smooth.pos.R
R/cor.fd.R
R/monomial.R
R/smooth.fd.R
R/plotfit.fd.R
R/landmarkreg.R
R/stddev.fd.R
R/predict.fRegress.R
R/monomialpen.R
R/fRegress.R
R/is.fdSmooth.R
R/std.fd.R
R/derivs.R
R/smooth.fdPar.R
R/fRegress.numeric.R
R/eval.bifd.R
R/objAndNames.R
R/is.diag.R
R/varmx.cca.fd.R
R/expon.R
R/create.constant.basis.R
R/readHMD.R
R/create.bspline.basis.R
R/int2Lfd.R
R/fdParcheck.R
R/register.fd.R
R/is.fd.R
R/eval.fd.R
R/eval.basis.R
R/plotbeta.R
R/varmx.R
R/fourierpen.R
R/getbasisrange.R
R/fourier.R
R/polintmat.R
R/intensity.fd.R
R/smooth.basis.R
R/is.Lfd.R
R/argcheck.R
R/CSTRfn.R
R/fd2list.R
R/density.fd.R
R/as.POSIXct1970.R
R/create.exponential.basis.R
R/powerbasis.R
R/deriv.fd.R
R/fdPar.R
R/linmod.R
R/project.basis.R
R/smooth.bibasis.R
R/matplot.R
R/create.fourier.basis.R
R/as.fd.R
R/fRegress.stderr.R
R/center.fd.R
R/fRegress.formula.R
R/axisIntervals.R
R/bifd.R
R/mongrad.R
R/pda.overlay.r
R/monhess.R
R/checkDims3.R
R/isotone.R
R/varmx.pca.fd.R
R/is.eqbasis.R
R/stepchk.R
R/pda.fd.R
R/AmpPhaseDecomp.R
R/eval.penalty.R
R/vec2Lfd.R
R/as.array3.R
R/wtcheck.R
R/TaylorSpline.R
R/quadset.R
R/polygpen.R
R/Fperm.fd.R
R/CSTR2.R
R/polyg.R
R/zerobasis.R
R/coef.R
R/evaldiag.bifd.R
R/rangechk.R
R/ycheck.R
R/plotreg.fd.R
R/stepit.R
R/ppBspline.R
R/plot.basisfd.R
R/var.fd.R
R/argvalsy.swap.R
R/checkLogicalInteger.R
R/create.power.basis.R
R/smooth.monotone.R
R/boxplot.fd.R
R/bsplineS.R
R/ppderiv.R
R/fd.R
R/eval.posfd.R
R/CSTRres.R
R/inprod.R
R/inprod.bspline.R
R/lines.fd.R
R/predict.lmeWinsor.R
R/plot.pca.fd.R
R/lmeWinsor.R
R/CRAN.R
R/fdlabels.R
R/trapzmat.R
R/subscript.R
R/lambda2gcv.R
R/Fstat.fd.R
R/norder.R
R/dirs.R
R/create.bspline.irregular.R
R/svd2.R
R/plot.pda.fd.R
R/eigen.pda.R
R/fbplot.R
R/is.integerLfd.R
R/CSTRfitLS.R
R/cca.fd.R
R/create.monomial.basis.R
R/getbasispenalty.R
R/Lfd.R
R/fRegressArgCheck.R
R/geigen.R
R/polyprod.R
R/df.residual.fRegress.R
R/lmWinsor.R
R/pca.fd.R
R/derivchk.R
R/bsplinepen.R
R/odesolv.R
R/cycleplot.fd.R
R/smooth.morph.R
R/register.newfd.R
R/knots.fd.R
R/symsolve.R
R/lambda2df.R
R/create.polygonal.basis.R
R/predict.lmWinsor.R
R/smooth.basis1.R
R/plot.fd.R
R/exponentiate.fd.R
R/fRegress.fdPar.R
R/basisfd.R
R/plotscores.R
R/file.copy2.R
R/getbasismatrix.R
R/fRegress.CV.R
R/tperm.fd.R
R/is.fdPar.R
R/monfn.R
R/Data2fd.R
R/CSTR2in.R
R/smooth.basisPar.R
R/plot.cca.fd.R
R/bifdPar.R
R/is.basis.R
R/eval.monfd.R
R/fdaMatlabPath.R
R/df2lambda.R
R/powerpen.R
R/plot.lmWinsor.R
MD5
DESCRIPTION
man
man/axisIntervals.Rd
man/cca.fd.Rd
man/resid.fRegress.Rd
man/linmod.Rd
man/register.fd0.Rd
man/norder.Rd
man/lines.fd.Rd
man/onechild.Rd
man/int2Lfd.Rd
man/zerofind.Rd
man/predict.lmWinsor.Rd
man/arithmetic.fd.Rd
man/create.exponential.basis.Rd
man/eval.basis.Rd
man/wtcheck.Rd
man/fda-package.Rd
man/register.fd.Rd
man/handwrit.Rd
man/create.polygonal.basis.Rd
man/Lfd.Rd
man/CRAN.Rd
man/create.bspline.basis.Rd
man/polyg.Rd
man/plotfit.fd.Rd
man/plotreg.fd.rd
man/is.Lfd.Rd
man/smooth.fd.Rd
man/is.eqbasis.rd
man/expon.Rd
man/StatSciChinese.Rd
man/basisfd.Rd
man/polygpen.Rd
man/argvalsy.swap.Rd
man/create.fourier.basis.Rd
man/fbplot.Rd
man/bifd.Rd
man/geigen.Rd
man/refinery.Rd
man/arithmetic.basisfd.Rd
man/lip.Rd
man/varmx.Rd
man/Data2fd.Rd
man/pda.overlay.Rd
man/sd.Rd
man/summary.basisfd.Rd
man/plotscores.Rd
man/dirs.Rd
man/eval.fd.Rd
man/plot.Lfd.Rd
man/project.basis.Rd
man/cycleplot.fd.Rd
man/readHMD.Rd
man/evaldiag.bifd.Rd
man/eval.monfd.Rd
man/landmarkreg.Rd
man/fRegress.CV.Rd
man/ppBspline.Rd
man/smooth.fdPar.Rd
man/svd2.Rd
man/CanadianWeather.Rd
man/center.fd.Rd
man/summary.fd.Rd
man/odesolv.Rd
man/knots.fd.Rd
man/TaylorSpline.Rd
man/matplot.Rd
man/plot.basisfd.Rd
man/is.fdSmooth.Rd
man/exponpen.Rd
man/quadset.Rd
man/eigen.pda.rd
man/smooth.bibasis.Rd
man/var.fd.Rd
man/create.constant.basis.Rd
man/is.fd.Rd
man/monomial.Rd
man/eval.posfd.Rd
man/fdPar.Rd
man/pda.fd.Rd
man/inprod.Bspline.Rd
man/file.copy2.Rd
man/bifdPar.Rd
man/as.fd.Rd
man/fd.Rd
man/as.POSIXct1970.Rd
man/inprod.Rd
man/powerpen.Rd
man/create.monomial.basis.Rd
man/summary.Lfd.Rd
man/intensity.fd.Rd
man/varmx.cca.fd.Rd
man/summary.bifd.Rd
man/checkLogicalInteger.Rd
man/plot.cca.fd.rd
man/landmark.reg.expData.Rd
man/fRegress.stderr.Rd
man/nondurables.Rd
man/smooth.monotone.Rd
man/sum.fd.Rd
man/monfn.Rd
man/eval.penalty.Rd
man/fdlabels.Rd
man/growth.Rd
man/lambda2df.Rd
man/lmWinsor12.Rd
man/summary.fdPar.Rd
man/is.basis.Rd
man/pca.fd.Rd
man/AmpPhaseDecomp.Rd
man/create.basis.Rd
man/smooth.basis.Rd
man/seabird.Rd
man/register.newfd.Rd
man/smooth.morph.Rd
man/eval.bifd.Rd
man/Eigen.Rd
man/cor.fd.Rd
man/fd2list.Rd
man/powerbasis.Rd
man/fdaMatlabPath.Rd
man/as.array3.Rd
man/getbasisrange.Rd
man/plot.fd.Rd
man/exponentiate.fd.Rd
man/fourierpen.Rd
man/deriv.fd.Rd
man/lmWinsor.Rd
man/varmx.pca.fd.Rd
man/phaseplanePlot.Rd
man/lmeWinsor.Rd
man/dateAccessories.Rd
man/lambda2gcv.Rd
man/smooth.pos.Rd
man/CSTR.Rd
man/density.fd.Rd
man/monomialpen.Rd
man/infantGrowth.Rd
man/predict.lmeWinsor.Rd
man/gait.Rd
man/MontrealTemp.Rd
man/df.residual.fRegress.Rd
man/bsplineS.Rd
man/mean.fd.Rd
man/plot.pca.fd.Rd
man/is.fdPar.Rd
man/checkDims3.Rd
man/tperm.fd.Rd
man/df2lambda.Rd
man/objAndNames.Rd
man/plot.lmWinsor.Rd
man/vec2Lfd.Rd
man/plotbeta.Rd
man/plot.pda.fd.rd
man/create.power.basis.Rd
man/basisfd.product.Rd
man/symsolve.Rd
man/bsplinepen.Rd
man/Fstat.fd.Rd
man/fRegress.Rd
man/melanoma.Rd
man/Fperm.fd.Rd
man/getbasismatrix.Rd
man/coef.Rd
man/smooth.basisPar.Rd
man/getbasispenalty.Rd
man/ReginaPrecip.Rd
man/fourier.Rd
man/predict.fRegress.Rd
man/pinch.Rd
fda documentation built on May 20, 2017, midnight

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.