Package: BCFM 1.0.0

Meriem Touami

BCFM: Bayesian Clustering Factor Models

Implements the Bayesian Clustering Factor Models (BCFM) for simultaneous clustering and latent factor analysis of multivariate longitudinal data. The model accounts for within-cluster dependence through shared latent factors while allowing heterogeneity across clusters, enabling flexible covariance modeling in high-dimensional settings. Inference is performed using Markov chain Monte Carlo (MCMC) methods with computationally intensive steps implemented via 'Rcpp'. Model selection and visualization tools are provided. The methodology is described in Shin, Ferreira, and Tegge (2018) <doi:10.1002/sim.70350>.

Authors:Allison Tegge [aut], Marco Ferreira [aut], Hwasoo Shin [aut], Meriem Touami [aut, cre]

BCFM_1.0.0.tar.gz
BCFM_1.0.0.tar.gz(r-4.7-arm64)BCFM_1.0.0.tar.gz(r-4.7-x86_64)BCFM_1.0.0.tar.gz(r-4.6-arm64)BCFM_1.0.0.tar.gz(r-4.6-x86_64)
BCFM_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
BCFM/json (API)

# Install 'BCFM' in R:
install.packages('BCFM', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ategge/bcfm/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:
  • sim.data - Simulated data for BCFM model

On CRAN:

Conda:

openblascpp

2.70 score 3 scripts 248 downloads 23 exports 83 dependencies

Last updated from:1db222df3a. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK204
linux-devel-x86_64OK206
source / vignettesOK314
linux-release-arm64OK382
linux-release-x86_64OK231
wasm-releaseOK183

Exports:BCFM.fitBCFM.model.selectionBCFMcppgetmodeggplot_B.CIggplot_B.traceggplot_ICggplot_latent.profilesggplot_mu.densityggplot_omega.densityggplot_probs.densityggplot_probs.traceggplot_sigma2.CIggplot_tau.CIggplot_variabilityggplot_Zit.heatmapICinit.datainitialize.cluster.hyperparmsinitialize.hyp.parminitialize.model.attributespermutation.orderpermutation.scale

Dependencies:abindbackportsbootbroomcarcarDataclicolorspacecorrplotcowplotcpp11DerivdoBydplyrfarverfastmatrixforecastFormulafracdiffgenericsggplot2ggpubrggrepelggsciggsignifglueGPArotationgridExtragtableisobandlabelingLaplacesDemonlatticelifecyclelme4lmtestmagrittrMASSMatrixMatrixModelsmgcvmicrobenchmarkminqamnormtmodelrmvtnormnlmenloptrnnetnumDerivpbkrtestpillarpkgconfigpolynompsychpurrrquantregR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasrlangrstatixS7scalesSparseMstringistringrsurvivaltibbletidyrtidyselecttimeDateurcautf8vctrsviridisLitewithrzoo

Getting Started with BCFM: A Complete Workflow

Rendered fromintroduction-to-BCFM.Rmdusingknitr::rmarkdownon Jun 10 2026.

Last update: 2026-02-10
Started: 2026-02-10