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.zip(r-4.7)BCFM_1.0.0.zip(r-4.6)BCFM_1.0.0.zip(r-4.5)
BCFM_1.0.0.tgz(r-4.6-x86_64)BCFM_1.0.0.tgz(r-4.6-arm64)BCFM_1.0.0.tgz(r-4.5-x86_64)BCFM_1.0.0.tgz(r-4.5-arm64)
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://ategge.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

4.60 score 1 stars 3 scripts 251 downloads 23 exports 83 dependencies

Last updated from:e53869492c. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK223
linux-devel-x86_64OK211
source / vignettesOK342
linux-release-arm64OK211
linux-release-x86_64OK192
macos-release-arm64OK224
macos-release-x86_64OK524
macos-oldrel-arm64OK280
macos-oldrel-x86_64OK504
windows-develOK217
windows-releaseOK227
windows-oldrelOK193
wasm-releaseOK198

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 11 2026.

Last update: 2026-02-07
Started: 2025-10-09