extract_fpc_scores | R Documentation |
This function will extract FPC scores from an object produced by rfr_fpca
, and return these scores in a data frame.
extract_fpc_scores(rfr_fpca_obj)
rfr_fpca_obj |
object returned by |
Data frame containing FPCA scores
library(refundr) library(tidyverse) data(dti_df) fpca_irregular <- rfr_fpca(Y = "cca", data = dti_df) scores <- refundr:::extract_fpc_scores(fpca_irregular) # this gets you scores on a "new" df -- kinda messy though ... predict(fpca_irregular, slice(dti_df, 1:10)) %>% refundr:::extract_fpca() %>% refundr:::extract_fpc_scores()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.