Learn R Programming

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

refund (version 0.1-1)

Regression with Functional Data

Description

Functions for regression with functional data. The principal methods currently implemented are (1) functional-response/scalar-predictor regression by penalized OLS or GLS; and (2) functional principal component regression for scalar responses and functional predictors.

Copy Link

Version

Install

install.packages('refund')

Monthly Downloads

2,224

Version

0.1-1

License

GPL (>= 2)

Maintainer

Lei Huang

Last Published

November 12th, 2010

Functions in refund (0.1-1)

fpcr

Functional principal component regression
print.summary.pffr

Print method for summary of a pffr fit
fpca.sc

Functional principal components analysis by smoothed covariance
ffpc

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

Additive model with constraints
smooth.construct.pss.smooth.spec

P-spline constructor with modified 'shrinkage' penalty
pwcv

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

Construct a function-on-function regression term
fosr

Function-on-scalar regression
fitted.pffr

Obtain fitted values for a pffr fit
plot.fosr

Default plotting of function-on-scalar regression objects
fpca.ssvd

Smoothed FPCA via iterative penalized rank one SVDs.
pffrGLS

Penalized function-on-function regression with non-i.i.d. residuals
plot.pffr

Plot a pffr fit
coefboot.pffr

Simple bootstrap CIs for pffr
pffr

Penalized function-on-function regression
DTI2

Diffusion Tensor Imaging: more fractional anisotropy profiles and outcomes
coef.pffr

Get estimated coefficients from a pffr fit
fpca2s

Functional principal component analysis by a two-stage method
gasoline

Octane numbers and NIR spectra of gasoline
ffpcplot

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

Leave-one-function-out cross-validation
cd4

Observed CD4 cell counts
af

Construct an FGAM regression term
plot.lpeer

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

Prediction for penalized functional regression
Predict.matrix.peer.smooth

mgcv-style constructor for prediction of PEER terms
ccb.fpc

Corrected confidence bands using functional principal components
pfr

Penalized functional regression and Longitudinal penalized functional regression
pcre

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

Functional Models with Structured Penalties
fgam

Functional Generalized Additive Models
smooth.construct.pcre.smooth.spec

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

Obtain residuals for a pffr fit
fosr2s

Two-step function-on-scalar regression
model.matrix.pffr

Obtain model matrix for a pffr fit
lpeer

Longitudinal Functional Models with Structured Penalties
PEER.Sim

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

Generalized elastic net in the wavelet domain
Xt_siginv_X

Internal computation function
gls_cs

Cross-sectional FoSR using GLS
fpca.face

Functional principal component analysis with fast covariance estimation
predict.wnet

Prediction method for generalized elastic net in the wavelet domain
DTI

Diffusion Tensor Imaging: tract profiles and outcomes
f_trace

Trace computation
rlrt.pfr

Likelihood Ratio Test and Restricted Likelihood Ratio Test for inference of functional predictors
vis.fgam

Visualization of FGAM objects
fbps

Sandwich smoother for matrix data
plot.wcr/wnet

Default plotting for wavelet-domain scalar-on-function regression
predict.fgam

Prediction from a fitted FGAM model
PEER.Sim, Q

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

Internal functions for the refund package
wcr

Principal component regression and partial least squares in the wavelet domain
expand.call

Return call with all possible arguments
plot.fpcr

Default plotting for functional principal component regression output
summary.pffr

Summary for a pffr fit
lf

Construct an FLM regression term
lpfr

Longitudinal penalized functional regression
f_sum2

Sum computation 2
fosr.perm

Permutation testing for function-on-scalar regression
refund-package

Regression with Functional Data
sff

Construct a smooth function-on-function regression term
pffrSim

Simulate example data for pffr
fosr.vs

Function-on Scalar Regression with variable selection
vb_mult_wish

Multilevel FoSR using Variational Bayes and Wishart prior
coefficients.pfr

Extract coefficient functions from a fitted pfr-object
predict.pffr

Prediction for penalized function-on-function regression
Predict.matrix.fpc.smooth

mgcv-style constructor for prediction of FPC terms
gibbs_mult_wish

Multilevel FoSR using a Gibbs sampler and Wishart prior
predict.fosr.vs

Prediction for Function-on Scalar Regression with variable selection
gibbs_cs_wish

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

Multilevel FoSR using a Gibbs sampler and FPCA
plot.pfr

Plot a pfr object
plot.peer

Plotting of estimated regression functions obtained through peer()
re

Random effects constructor for fgam
Predict.matrix.dt.smooth

Predict.matrix method for dt basis
vb_cs_wish

Cross-sectional FoSR using Variational Bayes and Wishart prior
bayes_fosr

Bayesian Function-on-scalar regression
pfr_plot.gam

Local version of plot.gam
Predict.matrix.pi.smooth

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

Basis constructor for PEER terms
af_old

Construct an FGAM regression term
wcr/wnet.perm

Permutation test for wavelet-domain scalar-on-function regression
smooth.construct.pi.smooth.spec

Parametric Interaction basis constructor
getTF

Get recognized transformation function
ols_cs

Cross-sectional FoSR using GLS
fpc

Construct a FPC regression term
create.prep.func

Construct a function for preprocessing functional predictors
f_sum

Sum computation 1
Predict.matrix.pcre.random.effect

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

Visualization of PFR objects
vb_mult_fpca

Multilevel FoSR using Variational Bayes and FPCA
lf.vd

Construct a VDFR regression term
vb_cs_fpca

Cross-sectional FoSR using Variational Bayes and FPCA
f_sum4

Sum computation 2
peer_old

Functional Models with Structured Penalties
gibbs_cs_fpca

Cross-sectional FoSR using a Gibbs sampler and FPCA
lf_old

Construct an FLM regression term
smooth.construct.dt.smooth.spec

Domain Transformation basis constructor
quadWeights

Compute quadrature weights
sofa

SOFA (Sequential Organ Failure Assessment) Data
pfr_old

Penalized Functional Regression (old version)
mfpca.sc

Multilevel functional principal components analysis by smoothed covariance
plot.fosr.vs

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

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

Basis constructor for FPC terms
fpca.lfda

Longitudinal Functional Data Analysis using FPCA
predict.fbps

Prediction for fast bivarate P-spline (fbps)
qq.pffr

QQ plots for pffr model residuals
pffr.check

Some diagnostics for a fitted pffr model