Learn R Programming

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

refund (version 0.1-24)

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-24

License

GPL (>= 2)

Maintainer

Julia Wrobel

Last Published

July 1st, 2021

Functions in refund (0.1-24)

Xt_siginv_X

Internal computation function
Predict.matrix.peer.smooth

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

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

mgcv-style constructor for prediction of FPC terms
DTI2

Diffusion Tensor Imaging: more fractional anisotropy profiles and outcomes
DTI

Diffusion Tensor Imaging: tract profiles and outcomes
af

Construct an FGAM regression term
af_old

Construct an FGAM regression term
amc

Additive model with constraints
PEER.Sim

Simulated longitudinal data with functional predictor and scalar response, and structural information associated with predictor 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
cd4

Observed CD4 cell counts
coefficients.pfr

Extract coefficient functions from a fitted pfr-object
ccb.fpc

Corrected confidence bands using functional principal components
expand.call

Return call with all possible arguments
bayes_fosr

Bayesian Function-on-scalar regression
cmdscale_lanczos

Faster multi-dimensional scaling
coef.pffr

Get estimated coefficients from a pffr fit
ffpcplot

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

Sum computation 1
getTF

Get recognized transformation function
gibbs_cs_fpca

Cross-sectional FoSR using a Gibbs sampler and FPCA
coefboot.pffr

Simple bootstrap CIs for pffr
f_sum2

Sum computation 2
pcre

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

Multilevel FoSR using a Gibbs sampler and Wishart prior
fosr

Function-on-scalar regression
fosr.perm

Permutation testing for function-on-scalar regression
f_sum4

Sum computation 2
gls_cs

Cross-sectional FoSR using GLS
fgam

Functional Generalized Additive Models
ols_cs

Cross-sectional FoSR using GLS
fpca.ssvd

Smoothed FPCA via iterative penalized rank one SVDs.
peer

Construct a PEER regression term in a pfr formula
ff

Construct a function-on-function regression term
pco_predict_preprocess

Make predictions using pco basis terms
predict.fgam

Prediction from a fitted FGAM model
peer_old

Functional Models with Structured Penalties
predict.fosr

Prediction from a fitted bayes_fosr model
pffr

Penalized flexible functional regression
predict.pfr

Prediction from a fitted pfr model
lf

Construct an FLM regression term
fpca2s

Functional principal component analysis by a two-stage method
create.prep.func

Construct a function for preprocessing functional predictors
ffpc

Construct a PC-based function-on-function regression term
gibbs_cs_wish

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

Multilevel FoSR using a Gibbs sampler and FPCA
fpca.lfda

Longitudinal Functional Data Analysis using FPCA
fpca.sc

Functional principal components analysis by smoothed covariance
fpc

Construct a FPC regression term
lf_old

Construct an FLM regression term
plot.pfr

Plot a pfr object
predict.fbps

Prediction for fast bivariate P-spline (fbps)
lofocv

Leave-one-function-out cross-validation
print.summary.pffr

Print method for summary of a pffr fit
lf.vd

Construct a VDFR regression term
smooth.construct.pi.smooth.spec

Parametric Interaction basis constructor
smooth.construct.pss.smooth.spec

P-spline constructor with modified 'shrinkage' penalty
vb_mult_wish

Multilevel FoSR using Variational Bayes and Wishart prior
lpeer

Longitudinal Functional Models with Structured Penalties
lpfr

Longitudinal penalized functional regression
fbps

Sandwich smoother for matrix data
fosr.vs

Function-on Scalar Regression with variable selection
f_trace

Trace computation
fosr2s

Two-step function-on-scalar regression
plot.fosr.vs

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

Prediction for penalized function-on-function regression
predict.fosr.vs

Prediction for Function-on Scalar Regression with variable selection
plot.fosr

Default plotting of function-on-scalar regression objects
vis.fgam

Visualization of FGAM objects
pffrSim

Simulate example data for pffr
pfr_old

Penalized Functional Regression (old version)
pffr.check

Some diagnostics for a fitted pffr model
mfpca.sc

Multilevel functional principal components analysis by smoothed covariance
plot.fpcr

Default plotting for functional principal component regression output
fpcr

Functional principal component regression
model.matrix.pffr

Obtain model matrix for a pffr fit
pfr

Penalized Functional Regression
fpca.face

Functional principal component analysis with fast covariance estimation
sff

Construct a smooth function-on-function regression term
gasoline

Octane numbers and NIR spectra of gasoline
pffrGLS

Penalized function-on-function regression with non-i.i.d. residuals
smooth.construct.dt.smooth.spec

Domain Transformation basis constructor
plot.pffr

Plot a pffr fit
refund-package

Regression with Functional Data
refund-internal

Internal functions for the refund package
plot.peer

Plotting of estimated regression functions obtained through peer()
residuals.pffr

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

Summary for a pfr fit
sofa

SOFA (Sequential Organ Failure Assessment) Data
summary.pffr

Summary for a pffr fit
rlrt.pfr

Likelihood Ratio Test and Restricted Likelihood Ratio Test for inference of functional predictors
pfr_plot.gam

Local version of plot.gam
plot.lpeer

Plotting of estimated regression functions obtained through lpeer()
vb_cs_fpca

Cross-sectional FoSR using Variational Bayes and FPCA
pwcv

Pointwise cross-validation for function-on-scalar regression
qq.pffr

QQ plots for pffr model residuals
quadWeights

Compute quadrature weights
re

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

Basis constructor for PEER terms
smooth.construct.pcre.smooth.spec

mgcv-style constructor for PC-basis functional random effects
vis.pfr

Visualization of PFR objects
smooth.construct.fpc.smooth.spec

Basis constructor for FPC terms
smooth.construct.pco.smooth.spec

Principal coordinate ridge regression
vb_mult_fpca

Multilevel FoSR using Variational Bayes and FPCA
vb_cs_wish

Cross-sectional FoSR using Variational Bayes and Wishart prior