rfr_fpca | R Documentation |
Tidy interface to refund
FPCA functions
rfr_fpca(Y, data, pve = 0.99, npc = NULL, method = NULL, ...) ## S3 method for class 'tfb' rfr_fpca(Y, data, pve = 0.99, npc = NULL, ...) ## S3 method for class 'tfd_irreg' rfr_fpca(Y, data, pve = 0.99, npc = NULL, method = fpca_sc, ...) ## S3 method for class 'tfd_reg' rfr_fpca(Y, data, pve = 0.99, npc = NULL, method = fpca_face, ...)
Y |
Unquoted variable name for the |
data |
a |
pve |
proportion of variance explained: used to choose the number of principal components. |
npc |
prespecified value for the number of principal components (if
given, this overrides |
method |
FPCA method of choice. Different options are available but
default depends on regularity/irregularity of |
... |
optional arguments to be passed to FPCA algorithms. Takes arguments from
original |
Allows calls to (wrappers for) refund::fpca.sc()
, refund::fpca.face()
, and
refund::fpca.ssvd()
as implemented in the {refund}
package. Tidy functional data
objects are input and tidy objects are returned as well.
an object of class fpca
, internal structure not yet fixed. Currently
a list with a tidyfun::tfb_fpc()
object and additional entries describingt the FPCA results.
tfd_irreg
: FPCA for data on irregular grids defaults to refund::fpca.sc()
tfd_reg
: FPCA for data on a regular grid defaults to refund::fpca.face()
Julia, Jeff, Fabian (plus any authors of the original refund code)
## Not run: library(refundr) data(dti_df) fpca_irregular <- rfr_fpca(Y = cca, data = dti_df) data(chf_df) fpca_regular <- rfr_fpca(Y = activity, data = chf_df) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.