View source: R/extract_fpca_object.R
extract_fpca_object | R Documentation |
Function that extracts the FPCA object created either by run_fpca()
or run_mfpca()
from the mxFDA
object
extract_fpca_object(mxFDAobject, what)
mxFDAobject |
object of class |
what |
what functional PCA data to extract, e.g. 'uni k' |
Output object can be visualized with refund.shiny::plot_shiny()
fpca
object created with run_fcm()
Alex Soupir alex.soupir@moffitt.org
#load ovarian mxFDA object
data('ovarian_FDA')
#run the FPCA
ovarian_FDA = run_fpca(ovarian_FDA, metric = "uni g", r = "r", value = "fundiff",
lightweight = TRUE,
pve = .99)
#extract the fpca object
obj = extract_fpca_object(ovarian_FDA, "uni g fpca")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.