Package: registr 2.2.1

registr: Curve Registration for Exponential Family Functional Data

A method for performing joint registration and functional principal component analysis for curves (functional data) that are generated from exponential family distributions. This mainly implements the algorithms described in 'Wrobel et al. (2019)' <doi:10.1111/biom.12963> and further adapts them to potentially incomplete curves where (some) curves are not observed from the beginning and/or until the end of the common domain. Curve registration can be used to better understand patterns in functional data by separating curves into phase and amplitude variability. This software handles both binary and continuous functional data, and is especially applicable in accelerometry and wearable technology.

Authors:Julia Wrobel [aut, cre], Alexander Bauer [aut], Erin McDonnell [aut], Fabian Scheipl [ctb], Jeff Goldsmith [aut]

registr_2.2.1.tar.gz
registr_2.2.1.zip(r-4.7)registr_2.2.1.zip(r-4.6)registr_2.2.1.zip(r-4.5)
registr_2.2.1.tgz(r-4.6-x86_64)registr_2.2.1.tgz(r-4.6-arm64)registr_2.2.1.tgz(r-4.5-x86_64)registr_2.2.1.tgz(r-4.5-arm64)
registr_2.2.1.tar.gz(r-4.7-arm64)registr_2.2.1.tar.gz(r-4.7-x86_64)registr_2.2.1.tar.gz(r-4.6-arm64)registr_2.2.1.tar.gz(r-4.6-x86_64)
registr_2.2.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
registr/json (API)

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

Bug tracker:https://github.com/julia-wrobel/registr/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

Conda:

openblascpp

6.91 score 17 stars 32 scripts 268 downloads 1 mentions 12 exports 37 dependencies

Last updated from:4010335c86. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK401
linux-devel-x86_64OK418
source / vignettesOK334
linux-release-arm64OK403
linux-release-x86_64OK422
macos-release-arm64OK310
macos-release-x86_64OK591
macos-oldrel-arm64OK312
macos-oldrel-x86_64OK472
windows-develOK451
windows-releaseOK397
windows-oldrelOK416
wasm-releaseOK152

Exports:bfpcabs_derivconstraintsdata_cleanfpca_gaussgfpca_twoSteploss_hloss_h_gradientregister_fpcaregistrsimulate_functional_datasimulate_unregistered_curves

Dependencies:bootclicpp11dplyrgamm4genericsgluelatticelifecyclelme4magrittrMASSMatrixmgcvminqanlmenloptrpbspillarpkgconfigpurrrR6rbibutilsRcppRcppArmadilloRcppEigenRdpackreformulasrlangstringistringrtibbletidyrtidyselectutf8vctrswithr

registr: a vignette
What is exponential family registration? | The registr model and algorithm | The registr package | A note on data formatting | Data simulation | Simulate data for registration | Simulate data for GFPCA | Joint registration and GFPCA using register_fpca() | Analyzing binary data | Analyzing gaussian data | Estimating the GFPCA | Binomial FPCA using bfpca() | Generalized FPCA using gfpca_twoStep() | Estimating the registration using registr() | Additional features | Registering incomplete curves | Parametric inverse warping functions | Periodic B-spline basis functions for GFPCA | Choosing the template function | Help files | References

Last update: 2025-10-15
Started: 2018-01-04

Registering Incomplete Curves
Introduction | Incomplete curve methodology | Application on incomplete growth data | Small lambda_inc | Larger lambda_inc | Choosing an optimal lambda_inc | Constraint matrices for the optimization | Complete curve setting | Leading incompleteness only | Trailing incompleteness only | Leading and trailing incompleteness | Help files

Last update: 2021-07-02
Started: 2020-11-02

Readme and manuals

Help Manual

Help pageTopics
Simulate amplitude varianceamp_curve
Binary functional principal components analysisbfpca
Internal main preparation function for bfpcabfpca_argPreparation
Internal main optimization for bfpcabfpca_optimization
Nth derivative of spline basisbs_deriv
Coarsen an index vector to a given resolutioncoarsen_index
Define constraints for optimization of warping functionsconstraints
Covariance estimation after Hall et al. (2008)cov_hall
Crossproduct computation for highly irregular gridscrossprods_irregular
Crossproduct computation for mostly regular gridscrossprods_regular
Convert data to a 'refund' objectdata_clean
Estimate the derivative of the logit functionderiv.inv.logit
Determine the number of FPCs based on the share of explained variancedetermine_npc
Correct slightly improper parameter vectorsensure_proper_beta
Calculate expected score and score variance for the current subject.expectedScores
Estimate variational parameter for the current subject.expectedXi
Functional principal components analysis via variational EMfpca_gauss
Internal main preparation function for fpca_gaussfpca_gauss_argPreparation
Internal main optimization for fpca_gaussfpca_gauss_optimization
Generalized functional principal component analysisgfpca_twoStep
Generate subject-specific grid (t_star)grid_subj_create
Berkeley Growth Study data with simulated incompletenessgrowth_incomplete
Create initial parameters for (inverse) warping functionsinitial_params
Apply lambda transformation of variational parameter.lambdaF
Loss function for registration step optimizationloss_h
Gradient of loss function for registration steploss_h_gradient
Simulate mean curvemean_curve
Simulate meanmean_sim
NHANES activity datanhanes
Create two-parameter piecewise linear (inverse) warping functionspiecewise_linear2_hinv
Plot the results of a functional PCAplot.fpca
Simulate PC1psi1_sim
Simulate PC2psi2_sim
Register curves using constrained optimization and GFPCAregister_fpca
Register (in)complete curves from exponential familyregistr
Internal function to register one curveregistr_oneCurve
Simulate functional datasimulate_functional_data
Simulate unregistered curvessimulate_unregistered_curves
Calculate quadratic form of spline basis functions for the current subject.squareTheta