Extract FPCA scores
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)`