fast generalized functional principal components analysis
- Authors: Julia Wrobel, Ciprian Crainiceanu, Andrew Leroux
- License: MIT. See the LICENSE file for details
- Version: 0.9
You can install the development version of fastGFPCA from GitHub with:
# install.packages("devtools")
devtools::install_github("julia-wrobel/fastGFPCA")
# build vignette with installation
devtools::install_github("julia-wrobel/fastGFPCA", build_vignettes = TRUE)
This example performs GFPCA on simulated binary data. More details on the use of the package can be found in the vignette.
library(fastGFPCA)
# simulate data
set.seed(10001)
df_gfpca <- sim_gfpca(N = 50, J = 500, case = 1)$df_gfpca
# run gfpca
bin_mod <- fast_gfpca(Y = df_gfpca, overlap = TRUE, binwidth = 20, npc = 4, family = "binomial")