Package: fda 6.1.9

fda: Functional Data Analysis

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

Authors:James Ramsay [aut, cre], Giles Hooker [ctb], Spencer Graves [ctb]

fda_6.1.9.tar.gz
fda_6.1.9.zip(r-4.5)fda_6.1.9.zip(r-4.4)fda_6.1.9.zip(r-4.3)
fda_6.1.9.tgz(r-4.4-any)fda_6.1.9.tgz(r-4.3-any)
fda_6.1.9.tar.gz(r-4.5-noble)fda_6.1.9.tar.gz(r-4.4-noble)
fda_6.1.9.tgz(r-4.4-emscripten)fda_6.1.9.tgz(r-4.3-emscripten)
fda.pdf |fda.html
fda/json (API)
NEWS

# Install 'fda' in R:
install.packages('fda', repos = c('https://jamesramsay5.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/jamesramsay5/fda/issues

Datasets:
  • CanadianWeather - Canadian average annual weather cycle
  • MontrealTemp - Montreal Daily Temperature
  • ReginaPrecip - Regina Daily Precipitation
  • daily - Canadian average annual weather cycle
  • day.5 - Numeric and character vectors to facilitate working with dates
  • dayOfYear - Numeric and character vectors to facilitate working with dates
  • dayOfYearShifted - Numeric and character vectors to facilitate working with dates
  • daysPerMonth - Numeric and character vectors to facilitate working with dates
  • gait - Hip and knee angle while walking
  • growth - Berkeley Growth Study data
  • handwrit - Cursive handwriting samples
  • handwritTime - Cursive handwriting samples
  • infantGrowth - Tibia Length for One Baby
  • lip - Lip motion
  • lipmarks - Lip motion
  • liptime - Lip motion
  • melanoma - Melanoma 1936-1972
  • monthBegin.5 - Numeric and character vectors to facilitate working with dates
  • monthEnd - Numeric and character vectors to facilitate working with dates
  • monthEnd.5 - Numeric and character vectors to facilitate working with dates
  • monthLetters - Numeric and character vectors to facilitate working with dates
  • monthMid - Numeric and character vectors to facilitate working with dates
  • nondurables - Nondurable goods index
  • pinch - Pinch force data
  • pinchraw - Pinch force data
  • pinchtime - Pinch force data
  • refinery - Reflux and tray level in a refinery
  • seabird - Sea Bird Counts
  • weeks - Numeric and character vectors to facilitate working with dates

On CRAN:

12.36 score 3 stars 140 packages 1.9k scripts 18k downloads 34 mentions 170 exports 47 dependencies

Last updated 5 months agofrom:04f5616c6a. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 10 2024
R-4.5-winOKNov 10 2024
R-4.5-linuxOKNov 10 2024
R-4.4-winOKNov 10 2024
R-4.4-macOKNov 10 2024
R-4.3-winOKNov 10 2024
R-4.3-macOKNov 10 2024

Exports:[.fdAmpPhaseDecompas.array3as.fdas.POSIXct1970axesIntervalsaxisIntervalsbasisfdbifdbifdParboxplot.fdboxplot.fdParboxplot.fdSmoothbsplinepenbsplineScca.fdcenter.fdcheckDim3checkDims3checkLogicalcheckLogicalIntegercheckNumericcor.fdcovPACECRANcreate.bspline.basiscreate.constant.basiscreate.exponential.basiscreate.fourier.basiscreate.monomial.basiscreate.polygonal.basiscreate.power.basisCSTR2CSTR2inCSTRfitLSCSTRfnCSTRresCSTRssecumfdcycleplot.fdData2fddensity.fdderiv.fddf2lambdadirsEigeneigen.pdaeval.basiseval.bifdeval.fdeval.monfdeval.penaltyeval.posfdeval.surpevaldiag.bifdexponexponentiate.fdexponpenfbplotfdfd2listfdlabelsfdParfdParcheckfourierfourierpenFperm.fdfRegressfRegress.CVfRegress.doublefRegress.fdfRegress.formulafRegress.stderrFstat.fdgeigengetbasismatrixgetbasispenaltygetbasisrangeinprodinprod.bsplineint2Lfdintensity.fdis.basisis.fdis.fdParis.fdSmoothis.Lfdlambda2dflambda2gcvlandmarkregLfdlines.fdSmoothlinmodlnsrchmatplotmatplot.defaultmean.fdminus.fdmonfnmongradmonhessmonomialmonomialpennordernorder.bsplineobjAndNamesodesolvpca.fdpcaPACEpda.fdpda.overlayphaseplanePlotplot.cca.fdplot.fdplot.pca.fdplotbetaplotfit.fdplotfit.fdSmoothplotscoresplus.fdpolintmatpolygpolygpenpowerbasispowerpenppBsplinepredict.basisfdpredict.fdpredict.fdParpredict.fdSmoothpredict.fRegressproject.basisquadsetreconsCurvesregister.fdregister.newfdscoresPACEsd.fdsmooth.basissmooth.basis.sparsesmooth.basisParsmooth.bibasissmooth.fdsmooth.fdParsmooth.monotonesmooth.morphsmooth.possmooth.sparse.meansmooth.surpsparse.listsparse.matstd.fdstddev.fdstdev.fdstepchkstepitsurp.fitsymsolvetimes.fdtperm.fdtrapzmatvar.fdvarmxvarmx.cca.fdvarmx.pca.fdvec2Lfdwtcheckycheckzerobasiszerofind

Dependencies:ashbitopscliclustercolorspacedeSolvefansifarverfdsFNNggplot2gluegtablehdrcdeisobandkernlabKernSmoothkslabelinglatticelifecyclelocfitmagrittrMASSMatrixmclustmgcvmulticoolmunsellmvtnormnlmepcaPPpillarpkgconfigpracmaR6rainbowRColorBrewerRcppRCurlrlangscalestibbleutf8vctrsviridisLitewithr

BasisBasics

Rendered fromBasisBasics.Rmdusingknitr::rmarkdownon Nov 10 2024.

Last update: 2023-05-24
Started: 2022-04-19

monotoneFunctions

Rendered frommonotoneFunctions.Rmdusingknitr::rmarkdownon Nov 10 2024.

Last update: 2023-05-24
Started: 2022-04-19

SplineFunctions

Rendered fromsplineFunctions.Rmdusingknitr::rmarkdownon Nov 10 2024.

Last update: 2023-05-24
Started: 2022-04-19

Readme and manuals

Help Manual

Help pageTopics
Decomposition for Amplitude and Phase VariationAmpPhaseDecomp
Arithmatic on functional basis objects==.basisfd arithmetic.basisfd
Arithmetic on functional data ('fd') objects*.fd +.fd -.fd arithmetic.fd minus.fd plus.fd times.fd
Reshape a vector or array to have 3 dimensions.as.array3
Convert a spline object to class 'fd'as.fd as.fd.fdSmooth as.fd.function as.fd.smooth.spline
'as.POXIXct' for number of seconds since the start of 1970.as.POSIXct1970
Mark Intervals on a Plot AxisaxesIntervals axisIntervals
Product of two basisfd objects*.basisfd basisfd.product
Create a bivariate functional data objectbifd
Define a Bivariate Functional Parameter ObjectbifdPar
B-Spline Penalty Matrixbsplinepen
B-spline Basis Function ValuesbsplineS
Canadian average annual weather cycleCanadianWeather daily
Functional Canonical Correlation Analysiscca.fd
Center Functional Datacenter.fd
Compare dimensions and dimnames of arrayscheckDim3 checkDims3
Does an argument satisfy required conditions?checkLogical checkLogicalInteger checkNumeric
Extract functional coefficientscoef.fd coef.fdPar coef.fdSmooth coefficients.fd coefficients.fdPar coefficients.fdSmooth
Correlation matrix from functional data object(s)cor.fd
Estimate of the covariance surfacecovPACE
Test if running as CRANCRAN
Create Basis Set for Functional Data Analysiscreate.basis
Create a B-spline Basiscreate.bspline.basis
Create a Constant Basiscreate.constant.basis
Create an Exponential Basiscreate.exponential.basis
Create a Fourier Basiscreate.fourier.basis
Create a Monomial Basiscreate.monomial.basis
Create a Polygonal Basiscreate.polygonal.basis
Create a Power Basis Objectcreate.power.basis
Continuously Stirred Tank ReactorCSTR CSTR2 CSTR2in CSTRfitLS CSTRfn CSTRres CSTRsse
Compute a Cumulative Distribution Functional Data Objectcumfd
Plot Cycles for a Periodic Bivariate Functional Data Objectcycleplot.fd
Create smooth functions that fit scatterplot data.Data2fd
Numeric and character vectors to facilitate working with datesdateAccessories day.5 dayOfYear dayOfYearShifted daysPerMonth monthAccessories monthBegin.5 monthEnd monthEnd.5 monthLetters monthMid weeks
Compute a Probability Density Functiondensity.fd
Compute a Derivative of a Functional Data Objectderiv.fd
Degrees of Freedom for Residuals from a Functional Regressiondf.residual.fRegress
Convert Degrees of Freedom to a Smoothing Parameter Valuedf2lambda
Get subdirectoriesdirs
Eigenanalysis preserving dimnamesEigen
Stability Analysis for Principle Differential Analysiseigen.pda
Predicting electricity demand in Adelaide from temperatureElectricDemand
Values of Basis Functions or their Derivativeseval.basis predict.basisfd
Values a Two-argument Functional Data Objecteval.bifd
Values of a Functional Data Objecteval.fd fitted.fdSmooth predict.fd predict.fdPar predict.fdSmooth residuals.fdSmooth
Values of a Monotone Functional Data Objecteval.monfd fitted.monfd predict.monfd residuals.monfd
Evaluate a Basis Penalty Matrixeval.penalty
Evaluate a Positive Functional Data Objecteval.posfd fitted.posfd predict.posfd residuals.posfd
Values of a Functional Data Object Defining Surprisal Curves.eval.surp
Evaluate the Diagonal of a Bivariate Functional Data Objectevaldiag.bifd
Exponential Basis Function Valuesexpon
Powers of a functional data ('fd') objectexponentiate.fd ^.fd
Exponential Penalty Matrixexponpen
Functional Boxplotsboxplot.fd boxplot.fdPar boxplot.fdSmooth fbplot
Convert a univariate functional data object to a listfd2list
Functions for statistical analyses of functionsfda
Extract plot labels and names for replicates and variablesfdlabels
Define a Functional Parameter ObjectfdPar
Convert 'fd' or 'basisfd' Objects to 'fdPar' ObjectsfdParcheck
Fourier Basis Function Valuesfourier
Fourier Penalty Matrixfourierpen
Permutation F-test for functional linear regression.Fperm.fd
Functional Regression AnalysisfRegress fRegress.character fRegress.double fRegress.fd fRegress.formula
Computes Cross-validated Error Sum of Integrated Squared Errors for a Functional Regression ModelfRegress.CV
Compute Standard errors of Coefficient Functions Estimated by Functional Regression AnalysisfRegress.stderr
F-statistic for functional linear regression.Fstat.fd
Hip and knee angle while walkinggait
Generalized eigenanalysisgeigen
Values of Basis Functions or their Derivativesgetbasismatrix
Evaluate a Roughness Penalty Matrixgetbasispenalty
Extract the range from a basis objectgetbasisrange
Berkeley Growth Study datagrowth
Cursive handwriting sampleshandwrit handwritTime
Tibia Length for One BabyinfantGrowth
Inner products of Functional Data Objects.inprod
Compute Inner Products B-spline Expansions.inprod.bspline
Convert Integer to Linear Differential Operatorint2Lfd
Intensity Function for Point Processintensity.fd
Confirm Object is Class "Basisfd"is.basis
Confirm that two objects of class "Basisfd" are identicalis.eqbasis
Confirm Object has Class "fd"is.fd
Confirm Object has Class "fdPar"is.fdPar
Confirm Object has Class "fdSmooth"is.fdSmooth
Confirm Object has Class "Lfd"is.Lfd
Extract the knots from a function basis or data objectknots.basisfd knots.fd knots.fdSmooth
Convert Smoothing Parameter to Degrees of Freedomlambda2df
Compute GCV Criterionlambda2gcv
Landmark Registration of Functional Observations with Differing Rangeslandmarkreg
Define a Linear Differential Operator ObjectLfd
Add Lines from Functional Data to a Plotlines.fd lines.fdSmooth
Fit Fully Functional Linear Modellinmod
Lip motionlip lipmarks liptime
Search along a line for a minimum within an optimisation algorithm.lnsrch
Plot Columns of Matricesmatplot matplot.Date matplot.default matplot.POSIXct
Mean of Functional Datamean.fd
melanoma 1936-1972melanoma
Evaluate the a monotone functionmonfn
Evaluate the gradient of a monotone functionmongrad
Evaluate the Hessian matrix of a monotone functionmonhess
Evaluate Monomial Basismonomial
Evaluate Monomial Roughness Penalty Matrixmonomialpen
Montreal Daily TemperatureMontrealTemp
Nondurable goods indexnondurables
Order of a B-splinenorder norder.basisfd norder.bspline norder.default norder.fd
Add names to an objectobjAndNames
Numerical Solution mth Order Differential Equation Systemodesolv
Functional Principal Components Analysispca.fd
Estimate the functional principal componentspcaPACE
Principal Differential Analysispda.fd
Stability Analysis for Principle Differential Analysispda.overlay
Phase-plane plotphaseplanePlot
pinch force datapinch pinchraw pinchtime
Plot a Basis Objectplot.basisfd
Plot Functional Canonical Correlation Weight Functionsplot.cca.fd
Plot a Functional Data Objectplot.fd plot.fdPar plot.fdSmooth
Plot a Linear Differential Operator Objectplot.Lfd
Plot Functional Principal Componentsplot.pca.fd
Plot Principle Differential Analysis Componentsplot.pda.fd
Plot a functional parameter object with confidence limitsplotbeta
Plot a Functional Data Object With Dataplotfit.fd plotfit.fdSmooth
Plot Principal Component Scoresplotscores
Polynomial extrapolation for a converging sequence of one or more valuespolintmat
Polygonal Basis Function Valuespolyg
Polygonal Penalty Matrixpolygpen
Power Basis Function Valuespowerbasis
Power Penalty Matrixpowerpen
Convert a B-spline function to piece-wise polynomial formppBspline
Predict method for Functional Regressionpredict.fRegress
Approximate Functional Data Using a Basisproject.basis
Quadrature points and weights for Simpson's rulequadset
Reconstruct data curves using functional principal componentsreconsCurves
Reflux and tray level in a refineryrefinery
Regina Daily PrecipitationReginaPrecip
Register Functional Data Objects Using a Continuous Criterionregister.fd
Register Functional Data Objects with Pre-Computed Warping Functionsregister.newfd
Estimates of functional Principal Component scores through PACEscoresPACE
Standard Deviation of Functional Datasd.fd std.fd stddev.fd stdev.fd
Sea Bird Countsseabird
Construct a functional data object by smoothing data using a roughness penaltysmooth.basis smooth.basis1 smooth.basis2 smooth.basis3
Construct a functional data object by smoothing data using a roughness penaltysmooth.basis.sparse
Smooth Data Using a Directly Specified Roughness Penaltysmooth.basisPar
Smooth a discrete surface over a rectangular latticesmooth.bibasis
Smooth a Functional Data Object Using an Indirectly Specified Roughness Penaltysmooth.fd
Smooth a functional data object using a directly specified roughness penaltysmooth.fdPar
Monotone Smoothing of Datasmooth.monotone
Estimates a Smooth Warping Function Mapping an Interval into Anothersmooth.morph
Smooth Data with a Positive Functionsmooth.pos
Smooth the mean function of sparse datasmooth.sparse.mean
Fit data with surprisal smoothing.smooth.surp
Creates a list of sparse data from a matrixsparse.list
Creates a matrix of sparse data with NAs out of a listsparse.mat
Check a step size value for being within parameter limits.stepchk
Compute a new step size for a linear search within an optimization algorithm.stepit
Sum of Functional Datasum.fd
Summarize a Functional Data Objectsummary.basisfd
Summarize a Bivariate Functional Data Objectsummary.bifd
Summarize a Functional Data Objectsummary.fd
Summarize a Functional Parameter Objectsummary.fdPar
Summarize a Linear Differential Operator Objectsummary.Lfd
Evaluate the fit of surprisal curves to binned psychometric data.surp.fit
solve(A, B) where A is symmetricsymsolve
Permutation t-test for two groups of functional data objects.tperm.fd
Approximate the functional inner product of two functional data objects using the trapezpoidal rule over a fine mesh of value.trapzmat
Variance, Covariance, and Correlation Surfaces for Functional Data Object(s)var.fd
Rotate a Matrix of Component Loadings using the VARIMAX Criterionvarmx
Rotation of Functional Canonical Components with VARIMAXvarmx.cca.fd
Rotation of Functional Principal Components with VARIMAX Criterionvarmx.pca.fd
Make a Linear Differential Operator Object from a Vectorvec2Lfd
Check a vector of weightswtcheck
Check Data Arrays for Smoothing Functionsycheck
Orthonormal Matrix with Columns Summing to Zerozerobasis
Does the range of the input contain 0?zerofind