Learn R Programming

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

refund (version 0.1-22)

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

1,829

Version

0.1-22

License

GPL (>= 2)

Maintainer

Julia Wrobel

Last Published

September 3rd, 2020

Functions in refund (0.1-22)

Xt_siginv_X

Internal computation function
DTI2

Diffusion Tensor Imaging: more fractional anisotropy profiles and outcomes
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
Predict.matrix.peer.smooth

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

Predict.matrix method for dt basis
DTI

Diffusion Tensor Imaging: tract profiles and outcomes
af

Construct an FGAM regression term
Predict.matrix.pcre.random.effect

mgcv-style constructor for prediction of PC-basis functional random effects
coefficients.pfr

Extract coefficient functions from a fitted pfr-object
bayes_fosr

Bayesian Function-on-scalar regression
Predict.matrix.pi.smooth

Predict.matrix method for pi basis
f_sum4

Sum computation 2
f_sum2

Sum computation 2
coef.pffr

Get estimated coefficients from a pffr fit
ffpc

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

Faster multi-dimensional scaling
ff

Construct a function-on-function regression term
f_trace

Trace computation
ccb.fpc

Corrected confidence bands using functional principal components
fbps

Sandwich smoother for matrix data
fpc

Construct a FPC regression term
fpca.ssvd

Smoothed FPCA via iterative penalized rank one SVDs.
cd4

Observed CD4 cell counts
coefboot.pffr

Simple bootstrap CIs for pffr
expand.call

Return call with all possible arguments
lf

Construct an FLM regression term
fpca.face

Functional principal component analysis with fast covariance estimation
f_sum

Sum computation 1
af_old

Construct an FGAM regression term
fosr.vs

Function-on Scalar Regression with variable selection
getTF

Get recognized transformation function
fosr2s

Two-step function-on-scalar regression
gibbs_cs_fpca

Cross-sectional FoSR using a Gibbs sampler and FPCA
fpca.lfda

Longitudinal Functional Data Analysis using FPCA
fpca.sc

Functional principal components analysis by smoothed covariance
gibbs_cs_wish

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

Longitudinal Functional Models with Structured Penalties
gibbs_mult_fpca

Multilevel FoSR using a Gibbs sampler and FPCA
lf.vd

Construct a VDFR regression term
fpcr

Functional principal component regression
model.matrix.pffr

Obtain model matrix for a pffr fit
create.prep.func

Construct a function for preprocessing functional predictors
pffr.check

Some diagnostics for a fitted pffr model
fosr

Function-on-scalar regression
fosr.perm

Permutation testing for function-on-scalar regression
mfpca.sc

Multilevel functional principal components analysis by smoothed covariance
gasoline

Octane numbers and NIR spectra of gasoline
pffrGLS

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

Longitudinal penalized functional regression
plot.peer

Plotting of estimated regression functions obtained through peer()
gibbs_mult_wish

Multilevel FoSR using a Gibbs sampler and Wishart prior
fpca2s

Functional principal component analysis by a two-stage method
gls_cs

Cross-sectional FoSR using GLS
lf_old

Construct an FLM regression term
lofocv

Leave-one-function-out cross-validation
pco_predict_preprocess

Make predictions using pco basis terms
pfr

Penalized Functional Regression
ols_cs

Cross-sectional FoSR using GLS
pffrSim

Simulate example data for pffr
amc

Additive model with constraints
peer_old

Functional Models with Structured Penalties
pfr_old

Penalized Functional Regression (old version)
ffpcplot

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

Functional Generalized Additive Models
pcre

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

Construct a PEER regression term in a pfr formula
plot.fosr.vs

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

Prediction from a fitted bayes_fosr model
plot.fosr

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

Prediction from a fitted FGAM model
smooth.construct.pi.smooth.spec

Parametric Interaction basis constructor
pffr

Penalized flexible functional regression
smooth.construct.pss.smooth.spec

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

Default plotting for functional principal component regression output
plot.lpeer

Plotting of estimated regression functions obtained through lpeer()
plot.pfr

Plot a pfr object
pfr_plot.gam

Local version of plot.gam
vis.fgam

Visualization of FGAM objects
vb_mult_wish

Multilevel FoSR using Variational Bayes and Wishart prior
predict.fosr.vs

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

Prediction for penalized function-on-function regression
refund-package

Regression with Functional Data
refund-internal

Internal functions for the refund package
vis.pfr

Visualization of PFR objects
residuals.pffr

Obtain residuals and fitted values for a pffr models
predict.fbps

Prediction for fast bivariate P-spline (fbps)
sff

Construct a smooth function-on-function regression term
rlrt.pfr

Likelihood Ratio Test and Restricted Likelihood Ratio Test for inference of functional predictors
qq.pffr

QQ plots for pffr model residuals
smooth.construct.pco.smooth.spec

Principal coordinate ridge regression
pwcv

Pointwise cross-validation for function-on-scalar regression
smooth.construct.fpc.smooth.spec

Basis constructor for FPC terms
plot.pffr

Plot a pffr fit
quadWeights

Compute quadrature weights
re

Random effects constructor for fgam
sofa

SOFA (Sequential Organ Failure Assessment) Data
predict.pfr

Prediction from a fitted pfr model
smooth.construct.pcre.smooth.spec

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

Print method for summary of a pffr fit
smooth.construct.peer.smooth.spec

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

Domain Transformation basis constructor
vb_cs_wish

Cross-sectional FoSR using Variational Bayes and Wishart prior
vb_mult_fpca

Multilevel FoSR using Variational Bayes and FPCA
summary.pffr

Summary for a pffr fit
summary.pfr

Summary for a pfr fit
vb_cs_fpca

Cross-sectional FoSR using Variational Bayes and FPCA