Learn R Programming

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

refund (version 0.1-31)

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,224

Version

0.1-31

License

GPL (>= 2)

Maintainer

Julia Wrobel

Last Published

June 29th, 2023

Functions in refund (0.1-31)

amc

Additive model with constraints
cmdscale_lanczos

Faster multi-dimensional scaling
coefficients.pfr

Extract coefficient functions from a fitted pfr-object
af_old

Construct an FGAM regression term
ccb.fpc

Corrected confidence bands using functional principal components
cd4

Observed CD4 cell counts
coef.pffr

Get estimated coefficients from a pffr fit
coefboot.pffr

Simple bootstrap CIs for pffr
bayes_fosr

Bayesian Function-on-scalar regression
af

Construct an FGAM regression term
f_sum4

Sum computation 2
expand.call

Return call with all possible arguments
f_sum

Sum computation 1
fbps

Sandwich smoother for matrix data
ff

Construct a function-on-function regression term
f_trace

Trace computation
f_sum2

Sum computation 2
content

The CONTENT child growth study
ffpc

Construct a PC-based function-on-function regression term
create.prep.func

Construct a function for preprocessing functional predictors
fpca.face

Functional principal component analysis with fast covariance estimation
ffpcplot

Plot PC-based function-on-function regression terms
fosr.vs

Function-on Scalar Regression with variable selection
fgam

Functional Generalized Additive Models
fosr

Function-on-scalar regression
fosr2s

Two-step function-on-scalar regression
fpca.lfda

Longitudinal Functional Data Analysis using FPCA
fpc

Construct a FPC regression term
fpca.sc

Functional principal components analysis by smoothed covariance
fosr.perm

Permutation testing for function-on-scalar regression
gasoline

Octane numbers and NIR spectra of gasoline
fpca.ssvd

Smoothed FPCA via iterative penalized rank one SVDs.
gibbs_mult_wish

Multilevel FoSR using a Gibbs sampler and Wishart prior
gibbs_mult_fpca

Multilevel FoSR using a Gibbs sampler and FPCA
fpca2s

Functional principal component analysis by a two-stage method
gls_cs

Cross-sectional FoSR using GLS
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
fpcr

Functional principal component regression
getTF

Get recognized transformation function
lofocv

Leave-one-function-out cross-validation
lpeer

Longitudinal Functional Models with Structured Penalties
lf_old

Construct an FLM regression term
ols_cs

Cross-sectional FoSR using GLS
model.matrix.pffr

Obtain model matrix for a pffr fit
lf.vd

Construct a VDFR regression term
lpfr

Longitudinal penalized functional regression
mfpca.face

Multilevel functional principal components analysis with fast covariance estimation
lf

Construct an FLM regression term
mfpca.sc

Multilevel functional principal components analysis by smoothed covariance
peer_old

Functional Models with Structured Penalties
peer

Construct a PEER regression term in a pfr formula
pffrSim

Simulate example data for pffr
pcre

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

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

Penalized Functional Regression (old version)
pfr

Penalized Functional Regression
pffr

Penalized flexible functional regression
pco_predict_preprocess

Make predictions using pco basis terms
pffr.check

Some diagnostics for a fitted pffr model
plot.lpeer

Plotting of estimated regression functions obtained through lpeer()
pfr_plot.gam

Local version of plot.gam
plot.peer

Plotting of estimated regression functions obtained through peer()
plot.fosr.vs

Plot for Function-on Scalar Regression with variable selection
predict.fgam

Prediction from a fitted FGAM model
plot.pfr

Plot a pfr object
plot.fpcr

Default plotting for functional principal component regression output
plot.fosr

Default plotting of function-on-scalar regression objects
predict.fbps

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

Plot a pffr fit
predict.fosr.vs

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

QQ plots for pffr model residuals
predict.fosr

Prediction from a fitted bayes_fosr model
pwcv

Pointwise cross-validation for function-on-scalar regression
predict.pfr

Prediction from a fitted pfr model
refund-internal

Internal functions for the refund package
print.summary.pffr

Print method for summary of a pffr fit
quadWeights

Compute quadrature weights
predict.pffr

Prediction for penalized function-on-function regression
re

Random effects constructor for fgam
sff

Construct a smooth function-on-function regression term
smooth.construct.pi.smooth.spec

Parametric Interaction basis constructor
rlrt.pfr

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

Basis constructor for PEER terms
refund-package

Regression with Functional Data
smooth.construct.pco.smooth.spec

Principal coordinate ridge regression
smooth.construct.pcre.smooth.spec

mgcv-style constructor for PC-basis functional random effects
residuals.pffr

Obtain residuals and fitted values for a pffr models
smooth.construct.dt.smooth.spec

Domain Transformation basis constructor
smooth.construct.fpc.smooth.spec

Basis constructor for FPC terms
sofa

SOFA (Sequential Organ Failure Assessment) Data
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
summary.pffr

Summary for a pffr fit
summary.pfr

Summary for a pfr fit
smooth.construct.pss.smooth.spec

P-spline constructor with modified 'shrinkage' penalty
vis.fgam

Visualization of FGAM objects
vb_mult_wish

Multilevel FoSR using Variational Bayes and Wishart prior
vis.pfr

Visualization of PFR objects
COVID19

The US weekly all-cause mortality and COVID19-associated deaths in 2020
DTI

Diffusion Tensor Imaging: tract profiles and outcomes
DTI2

Diffusion Tensor Imaging: more fractional anisotropy profiles and outcomes
Xt_siginv_X

Internal computation function
Predict.matrix.pcre.random.effect

mgcv-style constructor for prediction of PC-basis functional random effects
Predict.matrix.dt.smooth

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

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

mgcv-style constructor for prediction of PEER terms
Predict.matrix.fpc.smooth

mgcv-style constructor for prediction of FPC terms
PEER.Sim

Simulated longitudinal data with functional predictor and scalar response, and structural information associated with predictor function