Learn R Programming

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

refund (version 0.1-12)

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

License

GPL (>= 2)

Maintainer

Lei Huang

Last Published

August 6th, 2015

Functions in refund (0.1-12)

fosr2s

Two-step function-on-scalar regression
lpeer

Longitudinal Functional Models with Structured Penalties
af_old

Construct an FGAM regression term
bayes_fosr

Bayesian Function-on-scalar regression
gibbs_mult_wish

Multilevel FoSR using a Gibbs sampler and Wishart prior
create.prep.func

Construct a function for preprocessing functional predictors
plot.peer

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

Plotting of estimated regression functions obtained through lpeer()
vb_cs_fpca

Cross-sectional FoSR using Variational Bayes and FPCA
ccb.fpc

Corrected confidence bands using functional principal components
f_sum

Sum computation 1
amc

Additive model with constraints
Predict.matrix.dt.smooth

Predict.matrix method for dt basis
cd4

Observed CD4 cell counts
fpca.ssvd

Smoothed FPCA via iterative penalized rank one SVDs.
getTF

Get recognized transformation function
DTI

Diffusion Tensor Imaging: tract profiles and outcomes
coef.pffr

Get estimated coefficients from a pffr fit
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
pffrSim

Simulate example data for pffr
lf

Construct an FLM regression term
Predict.matrix.fpc.smooth

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

Simple bootstrap CIs for pffr
fosr

Function-on-scalar regression
smooth.construct.pi.smooth.spec

Parametric Interaction basis constructor
predict.fgam

Prediction from a fitted FGAM model
sofa

SOFA (Sequential Organ Failure Assessment) Data
vb_mult_wish

Multilevel FoSR using Variational Bayes and Wishart prior
quadWeights

Compute quadrature weights
ffpc

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

Plot a pffr fit
pfr

Penalized Functional Regression
fpca.sc

Functional principal components analysis by smoothed covariance
gasoline

Octane numbers and NIR spectra of gasoline
fosr.perm

Permutation testing for function-on-scalar regression
af

Construct an FGAM regression term
pwcv

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

Plot a pfr object
gls_cs

Cross-sectional FoSR using GLS
lofocv

Leave-one-function-out cross-validation
fosr.vs

Function-on Scalar Regression with variable selection
Xt_siginv_X

Internal computation function
f_sum2

Sum computation 2
summary.pffr

Summary for a pffr fit
plot.fosr.vs

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

Extract coefficient functions from a fitted pfr-object
peer

Construct a PEER regression term in a pfr formula
fpc

Construct a FPC regression term
smooth.construct.fpc.smooth.spec

Basis constructor for FPC terms
f_sum4

Sum computation 2
gibbs_mult_fpca

Multilevel FoSR using a Gibbs sampler and FPCA
rlrt.pfr

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

Regression with Functional Data
DTI2

Diffusion Tensor Imaging: more fractional anisotropy profiles and outcomes
gibbs_cs_wish

Cross-sectional FoSR using a Gibbs sampler and Wishart prior
Predict.matrix.pi.smooth

Predict.matrix method for pi basis
ffpcplot

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

Functional principal component analysis by a two-stage method
predict.pffr

Prediction for penalized function-on-function regression
ff

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

Domain Transformation basis constructor
Predict.matrix.peer.smooth

mgcv-style constructor for prediction of PEER terms
model.matrix.pffr

Obtain model matrix for a pffr fit
fpcr

Functional principal component regression
gibbs_cs_fpca

Cross-sectional FoSR using a Gibbs sampler and FPCA
peer_old

Functional Models with Structured Penalties
smooth.construct.peer.smooth.spec

Basis constructor for PEER terms
plot.fpcr

Default plotting for functional principal component regression output
pffr

Penalized function-on-function regression
pfr_plot.gam

Local version of plot.gam
vis.fgam

Visualization of FGAM objects
fgam

Functional Generalized Additive Models
re

Random effects constructor for fgam
plot.fosr

Default plotting of function-on-scalar regression objects
lf_old

Construct an FLM regression term
sff

Construct a smooth function-on-function regression term
expand.call

Return call with all possible arguments
lpfr

Longitudinal penalized functional regression
print.summary.pffr

Print method for summary of a pffr fit
pffrGLS

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

Trace computation
smooth.construct.pcre.smooth.spec

mgcv-style constructor for PC-basis functional random effects
refund-internal

Internal functions for the refund package
lf.vd

Construct a VDFR regression term
fpca.face

Smoothed FPCA via iterative penalized rank one SVDs.
vb_cs_wish

Cross-sectional FoSR using Variational Bayes and Wishart prior
ols_cs

Cross-sectional FoSR using GLS
predict.fosr.vs

Prediction for Function-on Scalar Regression with variable selection
fbps

Sandwich smoother for matrix data
predict.pfr

Prediction from a fitted pfr model
pcre

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

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

Visualization of PFR objects
vb_mult_fpca

Multilevel FoSR using Variational Bayes and FPCA
summary.pfr

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

P-spline constructor with modified 'shrinkage' penalty