View source: R/extract_fpca_scores.R
extract_fpca_scores | R Documentation |
Extract FPCA scores
extract_fpca_scores(mxFDAobject, what)
mxFDAobject |
object of class |
what |
what functional PCA data to extract, e.g. 'uni k' |
fpca object
Alex Soupir alex.soupir@moffitt.org
#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')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.