Skip to contents

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'

Value

fpca object

Details

[Stable]

Author

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"))
#> 128 sample have >= 4 values for FPCA; removing 0 samples

#extract uni fpc scores
fpc = extract_fpca_scores(ovarian_FDA, 'uni g fpca')
#> Joining with `by = join_by(sample_id)`