Learn R Programming

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

refund (version 0.1-13)

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

4,424

Version

0.1-13

License

GPL (>= 2)

Maintainer

Lei Huang

Last Published

September 8th, 2015

Functions in refund (0.1-13)

pfr

Penalized Functional Regression
model.matrix.pffr

Obtain model matrix for a pffr fit
f_trace

Trace computation
fpcr

Functional principal component regression
ffpc

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

Penalized function-on-function regression
f_sum

Sum computation 1
Predict.matrix.fpc.smooth

mgcv-style constructor for prediction of FPC terms
fbps

Sandwich smoother for matrix data
fosr

Function-on-scalar regression
peer_old

Functional Models with Structured Penalties
gasoline

Octane numbers and NIR spectra of gasoline
bayes_fosr

Bayesian Function-on-scalar regression
fosr2s

Two-step function-on-scalar regression
af_old

Construct an FGAM regression term
PEER.Sim

Simulated longitudinal data with functional predictor and scalar response, and structural information associated with predictor function
predict.fosr.vs

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

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

Default plotting of function-on-scalar regression objects
Predict.matrix.pi.smooth

Predict.matrix method for pi basis
gibbs_mult_fpca

Multilevel FoSR using a Gibbs sampler and FPCA
Predict.matrix.dt.smooth

Predict.matrix method for dt basis
amc

Additive model with constraints
predict.pffr

Prediction for penalized function-on-function regression
fpca.sc

Functional principal components analysis by smoothed covariance
fosr.vs

Function-on Scalar Regression with variable selection
expand.call

Return call with all possible arguments
af

Construct an FGAM regression term
ffpcplot

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

Prediction from a fitted FGAM model
ccb.fpc

Corrected confidence bands using functional principal components
plot.pfr

Plot a pfr object
smooth.construct.pi.smooth.spec

Parametric Interaction basis constructor
lf.vd

Construct a VDFR regression term
lpfr

Longitudinal penalized functional regression
lf_old

Construct an FLM regression term
f_sum4

Sum computation 2
fpca2s

Functional principal component analysis by a two-stage method
plot.peer

Plotting of estimated regression functions obtained through peer()
DTI2

Diffusion Tensor Imaging: more fractional anisotropy profiles and outcomes
getTF

Get recognized transformation function
fgam

Functional Generalized Additive Models
pffrGLS

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

Cross-sectional FoSR using a Gibbs sampler and FPCA
cd4

Observed CD4 cell counts
plot.lpeer

Plotting of estimated regression functions obtained through lpeer()
pcre

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

mgcv-style constructor for prediction of PEER terms
pffrSim

Simulate example data for pffr
smooth.construct.pss.smooth.spec

P-spline constructor with modified 'shrinkage' penalty
predict.pfr

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

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

Construct a PEER regression term in a pfr formula
Xt_siginv_X

Internal computation function
pfr_old

Penalized Functional Regression (old version)
Predict.matrix.pcre.random.effect

mgcv-style constructor for prediction of PC-basis functional random effects
coefboot.pffr

Simple bootstrap CIs for pffr
coef.pffr

Get estimated coefficients from a pffr fit
mfpca.sc

Multilevel functional principal components analysis by smoothed covariance
smooth.construct.dt.smooth.spec

Domain Transformation basis constructor
vb_cs_fpca

Cross-sectional FoSR using Variational Bayes and FPCA
lofocv

Leave-one-function-out cross-validation
sofa

SOFA (Sequential Organ Failure Assessment) Data
DTI

Diffusion Tensor Imaging: tract profiles and outcomes
coefficients.pfr

Extract coefficient functions from a fitted pfr-object
gls_cs

Cross-sectional FoSR using GLS
create.prep.func

Construct a function for preprocessing functional predictors
lf

Construct an FLM regression term
lpeer

Longitudinal Functional Models with Structured Penalties
fpc

Construct a FPC regression term
ff

Construct a function-on-function regression term
gibbs_mult_wish

Multilevel FoSR using a Gibbs sampler and Wishart prior
re

Random effects constructor for fgam
gibbs_cs_wish

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

Sum computation 2
ols_cs

Cross-sectional FoSR using GLS
fosr.perm

Permutation testing for function-on-scalar regression
sff

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

Basis constructor for PEER terms
summary.pfr

Summary for a pfr fit
fpca.face

Smoothed FPCA via iterative penalized rank one SVDs.
summary.pffr

Summary for a pffr fit
plot.pffr

Plot a pffr fit
fpca.ssvd

Smoothed FPCA via iterative penalized rank one SVDs.
vb_cs_wish

Cross-sectional FoSR using Variational Bayes and Wishart prior
vis.fgam

Visualization of FGAM objects
vb_mult_wish

Multilevel FoSR using Variational Bayes and Wishart prior
rlrt.pfr

Likelihood Ratio Test and Restricted Likelihood Ratio Test for inference of functional predictors
refund-package

Regression with Functional Data
pfr_plot.gam

Local version of plot.gam
pwcv

Pointwise cross-validation for function-on-scalar regression
vb_mult_fpca

Multilevel FoSR using Variational Bayes and FPCA
quadWeights

Compute quadrature weights
print.summary.pffr

Print method for summary of a pffr fit
residuals.pffr

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

Basis constructor for FPC terms
refund-internal

Internal functions for the refund package
plot.fpcr

Default plotting for functional principal component regression output
vis.pfr

Visualization of PFR objects