extract_fpca_scores {mxfda}R Documentation

Extract FPCA scores

Description

Extract FPCA scores

Usage

extract_fpca_scores(mxFDAobject, what)

Arguments

mxFDAobject

object of class mxFDA

what

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

Details

[Stable]

Value

fpca object

Author(s)

Alex Soupir alex.soupir@moffitt.org

Examples

#load ovarian mxFDA object
data('ovarian_FDA')

#run ghe lfcm model
ovarian_FDA = run_fpca(ovarian_FDA, metric = "uni g", r = "r",
                       value = "fundiff",
                       analysis_vars = c("age", "survival_time"))

#extract uni fpc scores
fpc = extract_fpca_scores(ovarian_FDA, 'uni g fpca')


[Package mxfda version 0.2.1 Index]