Learn R Programming

mxfda (version 0.2.2-1)

extract_fpca_object: Extract FPCA object

Description

Function that extracts the FPCA object created either by run_fpca() or run_mfpca() from the mxFDA object

Usage

extract_fpca_object(mxFDAobject, what)

Value

fpca object created with run_fcm()

Arguments

mxFDAobject

object of class mxFDA

what

what functional PCA data to extract, e.g. 'uni k'

Author

Alex Soupir alex.soupir@moffitt.org

Details

[Stable]

Output object can be visualized with refund.shiny::plot_shiny()

Examples

Run this code
#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")

Run the code above in your browser using DataLab