View source: R/create.prep.func.R
create.prep.func | R Documentation |
Prior to using functions X
as predictors in a scalar-on-function regression, it is often
necessary to presmooth curves to remove measurement error or interpolate to a common grid. This
function creates a function to do this preprocessing depending on the method specified.
create.prep.func(
X,
argvals = seq(0, 1, length = ncol(X)),
method = c("fpca.sc", "fpca.face", "fpca.ssvd", "bspline", "interpolate"),
options = NULL
)
X |
an |
argvals |
matrix (or vector) of indices of evaluations of |
method |
character string indicating the preprocessing method. Options
are |
options |
list of options passed to the preprocessing method; as an example, options for |
a function that returns the preprocessed functional predictors, with arguments
newX |
The functional predictors to process |
argvals. |
Indices of evaluation of |
options. |
Any options needed to preprocess the predictor functions |
Jeff Goldsmith ajg2202@cumc.columbia.edu
pfr
, fpca.sc
, fpca.face
, fpca.ssvd
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.