Learn R Programming

refund (version 0.1-37)

Regression with Functional Data

Description

Methods for regression for functional data, including function-on-scalar, scalar-on-function, and function-on-function regression. Some of the functions are applicable to image data.

Copy Link

Version

Install

install.packages('refund')

Monthly Downloads

2,704

Version

0.1-37

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

September 20th, 2024

Functions in refund (0.1-37)

fbps

Sandwich smoother for matrix data
f_sum

Sum computation 1
bayes_fosr

Bayesian Function-on-scalar regression
ff

Construct a function-on-function regression term
f_trace

Trace computation
f_sum4

Sum computation 2
f_sum2

Sum computation 2
.smooth.spec

Basis constructor for PEER terms
expand.call

Return call with all possible arguments
content

The CONTENT child growth study
create.prep.func

Construct a function for preprocessing functional predictors
fgam

Functional Generalized Additive Models
fosr.vs

Function-on Scalar Regression with variable selection
fosr2s

Two-step function-on-scalar regression
fpc

Construct a FPC regression term
ffpc

Construct a PC-based function-on-function regression term
fpca.face

Functional principal component analysis with fast covariance estimation
fosr.perm

Permutation testing for function-on-scalar regression
fosr

Function-on-scalar regression
fpca.lfda

Longitudinal Functional Data Analysis using FPCA
ffpcplot

Plot PC-based function-on-function regression terms
fpca2s

Functional principal component analysis by a two-stage method
fpcr

Functional principal component regression
gasoline

Octane numbers and NIR spectra of gasoline
fpca.sc

Functional principal components analysis by smoothed covariance
getTF

Get recognized transformation function
gibbs_mult_fpca

Multilevel FoSR using a Gibbs sampler and FPCA
fpca.ssvd

Smoothed FPCA via iterative penalized rank one SVDs.
gibbs_mult_wish

Multilevel FoSR using a Gibbs sampler and Wishart prior
gibbs_cs_fpca

Cross-sectional FoSR using a Gibbs sampler and FPCA
gibbs_cs_wish

Cross-sectional FoSR using a Gibbs sampler and Wishart prior
lpfr

Longitudinal penalized functional regression
mfpca.face

Multilevel functional principal components analysis with fast covariance estimation
lf_old

Construct an FLM regression term
lf.vd

Construct a VDFR regression term
lf

Construct an FLM regression term
gls_cs

Cross-sectional FoSR using GLS
model.matrix.pffr

Obtain model matrix for a pffr fit
mfpca.sc

Multilevel functional principal components analysis by smoothed covariance
lofocv

Leave-one-function-out cross-validation
lpeer

Longitudinal Functional Models with Structured Penalties
pffr.check

Some diagnostics for a fitted pffr model
pffrGLS

Penalized function-on-function regression with non-i.i.d. residuals
pco_predict_preprocess

Make predictions using pco basis terms
ols_cs

Cross-sectional FoSR using GLS
pcre

pffr-constructor for functional principal component-based functional random intercepts.
peer

Construct a PEER regression term in a pfr formula
pffrSim

Simulate example data for pffr
pfr

Penalized Functional Regression
pfr_old

Penalized Functional Regression (old version)
plot.peer

Plotting of estimated regression functions obtained through peer()
pwcv

Pointwise cross-validation for function-on-scalar regression
plot.lpeer

Plotting of estimated regression functions obtained through lpeer()
predict.fosr.vs

Prediction for Function-on Scalar Regression with variable selection
predict.pffr

Prediction for penalized function-on-function regression
plot.fpcr

Default plotting for functional principal component regression output
qq.pffr

QQ plots for pffr model residuals
plot.pffr

Plot a pffr fit
predict.pfr

Prediction from a fitted pfr model
peer_old

Functional Models with Structured Penalties
pfr_plot.gam

Local version of plot.gam
pffr

Penalized flexible functional regression
plot.pfr

Plot a pfr object
predict.fbps

Prediction for fast bivariate P-spline (fbps)
residuals.pffr

Obtain residuals and fitted values for a pffr models
print.summary.pffr

Print method for summary of a pffr fit
sofa

SOFA (Sequential Organ Failure Assessment) Data
smooth.construct.pss.smooth.spec

P-spline constructor with modified 'shrinkage' penalty
plot.fosr

Default plotting of function-on-scalar regression objects
plot.fosr.vs

Plot for Function-on Scalar Regression with variable selection
rlrt.pfr

Likelihood Ratio Test and Restricted Likelihood Ratio Test for inference of functional predictors
smooth.construct.fpc.smooth.spec

Basis constructor for FPC terms
predict.fgam

Prediction from a fitted FGAM model
predict.fosr

Prediction from a fitted bayes_fosr model
quadWeights

Compute quadrature weights
smooth.construct.pco.smooth.spec

Principal coordinate ridge regression
re

Random effects constructor for fgam
smooth.construct.pcre.smooth.spec

mgcv-style constructor for PC-basis functional random effects
sff

Construct a smooth function-on-function regression term
vis.fgam

Visualization of FGAM objects
smooth.construct.dt.smooth.spec

Domain Transformation basis constructor
vb_mult_fpca

Multilevel FoSR using Variational Bayes and FPCA
vb_cs_fpca

Cross-sectional FoSR using Variational Bayes and FPCA
vb_cs_wish

Cross-sectional FoSR using Variational Bayes and Wishart prior
vb_mult_wish

Multilevel FoSR using Variational Bayes and Wishart prior
smooth.construct.pi.smooth.spec

Parametric Interaction basis constructor
summary.pffr

Summary for a pffr fit
summary.pfr

Summary for a pfr fit
vis.pfr

Visualization of PFR objects
DTI

Diffusion Tensor Imaging: tract profiles and outcomes
PEER.Sim

Simulated longitudinal data with functional predictor and scalar response, and structural information associated with predictor function
Predict.matrix.fpc.smooth

mgcv-style constructor for prediction of FPC terms
DTI2

Diffusion Tensor Imaging: more fractional anisotropy profiles and outcomes
Xt_siginv_X

Internal computation function
Predict.matrix.pi.smooth

Predict.matrix method for pi basis
Predict.matrix.pcre.random.effect

mgcv-style constructor for prediction of PC-basis functional random effects
COVID19

The US weekly all-cause mortality and COVID19-associated deaths in 2020
Predict.matrix.dt.smooth

Predict.matrix method for dt basis
Predict.matrix.peer.smooth

mgcv-style constructor for prediction of PEER terms
coefboot.pffr

Simple bootstrap CIs for pffr
coef.pffr

Get estimated coefficients from a pffr fit
ccb.fpc

Corrected confidence bands using functional principal components
af_old

Construct an FGAM regression term
cmdscale_lanczos

Faster multi-dimensional scaling
af

Construct an FGAM regression term
amc

Additive model with constraints
cd4

Observed CD4 cell counts
coefficients.pfr

Extract coefficient functions from a fitted pfr-object