{
  "_id": "6a10355aacfb0bcc41c99a50",
  "Package": "BCFM",
  "Type": "Package",
  "Title": "Bayesian Clustering Factor Models",
  "Version": "1.0.0",
  "Authors@R": "c(\nperson(\"Allison\", \"Tegge\", email = \"ategge@vt.edu\", role = \"aut\"),\nperson(\"Marco\", \"Ferreira\", email = \"marf@vt.edu\", role = \"aut\"),\nperson(\"Hwasoo\", \"Shin\", email = \"hshin2@hfhs.org\", role = \"aut\"),\nperson(\"Meriem\", \"Touami\", email = \"meriemt@vt.edu\", role = c(\"aut\", \"cre\")))",
  "Description": "Implements the Bayesian Clustering Factor Models (BCFM)\nfor simultaneous clustering and latent factor analysis of\nmultivariate longitudinal data. The model accounts for\nwithin-cluster dependence through shared latent factors while\nallowing heterogeneity across clusters, enabling flexible\ncovariance modeling in high-dimensional settings. Inference is\nperformed using Markov chain Monte Carlo (MCMC) methods with\ncomputationally intensive steps implemented via 'Rcpp'. Model\nselection and visualization tools are provided. The methodology\nis described in Shin, Ferreira, and Tegge (2018)\n<doi:10.1002/sim.70350>.",
  "License": "GPL (>= 3)",
  "SystemRequirements": "pandoc (>= 1.12.3) for building vignettes",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "LazyData": "true",
  "URL": "https://github.com/ategge/BCFM",
  "BugReports": "https://github.com/ategge/BCFM/issues",
  "Config/pak/sysreqs": "cmake make libicu-dev",
  "Repository": "https://ategge.r-universe.dev",
  "Date/Publication": "2026-02-07 03:36:25 UTC",
  "RemoteUrl": "https://github.com/ategge/bcfm",
  "RemoteRef": "HEAD",
  "RemoteSha": "e53869492cce50f7c4b4fbc829b2d494f89abc2c",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-12 07:22:54 UTC",
    "User": "root"
  },
  "Author": "Allison Tegge [aut],\nMarco Ferreira [aut],\nHwasoo Shin [aut],\nMeriem Touami [aut, cre]",
  "Maintainer": "Meriem Touami <meriemt@vt.edu>",
  "MD5sum": "e3094915ae51803bbb6c7f9356a53d8a",
  "_user": "ategge",
  "_type": "src",
  "_file": "BCFM_1.0.0.tar.gz",
  "_fileid": "086a3d9c56b86e1522f9363506edcfa709b83c71e89a5668200f39a0e3f2a243",
  "_filesize": 632792,
  "_sha256": "086a3d9c56b86e1522f9363506edcfa709b83c71e89a5668200f39a0e3f2a243",
  "_created": "2026-05-12T07:22:54.000Z",
  "_published": "2026-05-22T10:52:10.372Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77365003015,
      "time": 220,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6938148184"
    },
    {
      "job": 77365002714,
      "time": 223,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6938149059"
    },
    {
      "job": 77365002724,
      "time": 205,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6938144138"
    },
    {
      "job": 77365002754,
      "time": 216,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6938147245"
    },
    {
      "job": 77365003134,
      "time": 186,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6938132693"
    },
    {
      "job": 77365002730,
      "time": 361,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6938185679"
    },
    {
      "job": 77365002980,
      "time": 239,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6938145638"
    },
    {
      "job": 77365002537,
      "time": 511,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6938221489"
    },
    {
      "job": 77365002659,
      "time": 308,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6938085180"
    },
    {
      "job": 77365002330,
      "time": 178,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7158752892"
    },
    {
      "job": 77365002615,
      "time": 236,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "6938153497"
    },
    {
      "job": 77365002757,
      "time": 174,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "6938135283"
    },
    {
      "job": 77365002787,
      "time": 237,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "6938153166"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ategge/actions/runs/25719630247",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/ategge/bcfm",
  "_commit": {
    "id": "e53869492cce50f7c4b4fbc829b2d494f89abc2c",
    "author": "meriem-t <53788149+meriem-t@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #9 from ategge/meriem/address-cran-comments-p2\n\nAddress CRAN reviewer comments (Part 2)",
    "time": 1770435385
  },
  "_maintainer": {
    "name": "Meriem Touami",
    "email": "meriemt@vt.edu"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "RcppArmadillo",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "fastmatrix",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "gridExtra",
      "role": "Imports"
    },
    {
      "package": "LaplacesDemon",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "psych",
      "role": "Imports"
    },
    {
      "package": "RColorBrewer",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "ggpubr",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "ategge",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-41",
      "n": 5
    },
    {
      "week": "2025-43",
      "n": 1
    },
    {
      "week": "2025-50",
      "n": 3
    },
    {
      "week": "2025-51",
      "n": 4
    },
    {
      "week": "2026-03",
      "n": 5
    },
    {
      "week": "2026-04",
      "n": 2
    },
    {
      "week": "2026-05",
      "n": 1
    },
    {
      "week": "2026-06",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "meriem-t",
      "count": 31,
      "uuid": 53788149
    },
    {
      "user": "marf-at-vt",
      "count": 4,
      "uuid": 35355595
    }
  ],
  "_userbio": {
    "uuid": 11236417,
    "type": "user",
    "name": "ategge"
  },
  "_downloads": {
    "count": 173,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/BCFM"
  },
  "_devurl": "https://github.com/ategge/bcfm",
  "_searchresults": 3,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/BCFM.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/ategge/bcfm",
  "_realowner": "ategge",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2026-02-16"
    }
  ],
  "_exports": [
    "BCFM.fit",
    "BCFM.model.selection",
    "BCFMcpp",
    "getmode",
    "ggplot_B.CI",
    "ggplot_B.trace",
    "ggplot_IC",
    "ggplot_latent.profiles",
    "ggplot_mu.density",
    "ggplot_omega.density",
    "ggplot_probs.density",
    "ggplot_probs.trace",
    "ggplot_sigma2.CI",
    "ggplot_tau.CI",
    "ggplot_variability",
    "ggplot_Zit.heatmap",
    "IC",
    "init.data",
    "initialize.cluster.hyperparms",
    "initialize.hyp.parm",
    "initialize.model.attributes",
    "permutation.order",
    "permutation.scale"
  ],
  "_datasets": [
    {
      "name": "sim.data",
      "title": "Simulated data for BCFM model",
      "object": "sim.data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "V1",
        "V2",
        "V3",
        "V4",
        "V5",
        "V6",
        "V7",
        "V8",
        "V9",
        "V10",
        "V11",
        "V12",
        "V13",
        "V14",
        "V15",
        "V16",
        "V17",
        "V18",
        "V19",
        "V20"
      ],
      "rows": 200,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "BCFM.fit",
      "title": "Fit BCFM Model",
      "topics": [
        "BCFM.fit"
      ]
    },
    {
      "page": "BCFM.model.selection",
      "title": "BCFM Model Selection Over Multiple Groups and Factors",
      "topics": [
        "BCFM.model.selection"
      ]
    },
    {
      "page": "BCFMcpp",
      "title": "Gibbs sampler of BCFM",
      "topics": [
        "BCFMcpp"
      ]
    },
    {
      "page": "getmode",
      "title": "Get the mode of a vector",
      "topics": [
        "getmode"
      ]
    },
    {
      "page": "ggplot_B.CI",
      "title": "Build factor loadings plot",
      "topics": [
        "ggplot_B.CI"
      ]
    },
    {
      "page": "ggplot_B.trace",
      "title": "Trace plot for posterior of factor loadings",
      "topics": [
        "ggplot_B.trace"
      ]
    },
    {
      "page": "ggplot_IC",
      "title": "Plot IC Matrix from Model Selection",
      "topics": [
        "ggplot_IC"
      ]
    },
    {
      "page": "ggplot_latent.profiles",
      "title": "Plot Latent Factor Profiles by Cluster",
      "topics": [
        "ggplot_latent.profiles"
      ]
    },
    {
      "page": "ggplot_mu.density",
      "title": "Density of group means mu using ggplot2",
      "topics": [
        "ggplot_mu.density"
      ]
    },
    {
      "page": "ggplot_omega.density",
      "title": "The density plot of the diagonal of group covariance, Omega, with ggplot2",
      "topics": [
        "ggplot_omega.density"
      ]
    },
    {
      "page": "ggplot_probs.density",
      "title": "Density plot for posterior of probabilities",
      "topics": [
        "ggplot_probs.density"
      ]
    },
    {
      "page": "ggplot_probs.trace",
      "title": "Trace plot of probabilities parameter",
      "topics": [
        "ggplot_probs.trace"
      ]
    },
    {
      "page": "ggplot_sigma2.CI",
      "title": "A credible interval plot of posterior of sigma squared",
      "topics": [
        "ggplot_sigma2.CI"
      ]
    },
    {
      "page": "ggplot_tau.CI",
      "title": "A credible interval plot of posterior of factor loadings covariance, tau",
      "topics": [
        "ggplot_tau.CI"
      ]
    },
    {
      "page": "ggplot_variability",
      "title": "Variability explained by factors",
      "topics": [
        "ggplot_variability"
      ]
    },
    {
      "page": "ggplot_Zit.heatmap",
      "title": "A heatmap of group assignments, Z using ggplot2",
      "topics": [
        "ggplot_Zit.heatmap"
      ]
    },
    {
      "page": "IC",
      "title": "Information Criterion. Very close to the original BIC method, but this uses the integrated likelihood instead.",
      "topics": [
        "IC"
      ]
    },
    {
      "page": "init.data",
      "title": "Initialize Data Array for BCFM Model",
      "topics": [
        "init.data"
      ]
    },
    {
      "page": "initialize.cluster.hyperparms",
      "title": "Initialize cluster hyperparameters",
      "topics": [
        "initialize.cluster.hyperparms"
      ]
    },
    {
      "page": "initialize.hyp.parm",
      "title": "Initialize hyperparmeters for BCFM model",
      "topics": [
        "initialize.hyp.parm"
      ]
    },
    {
      "page": "initialize.model.attributes",
      "title": "Build model attributes from the dataset",
      "topics": [
        "initialize.model.attributes"
      ]
    },
    {
      "page": "permutation.order",
      "title": "Order of permutation by the largest absolute value in each eigenvector",
      "topics": [
        "permutation.order"
      ]
    },
    {
      "page": "permutation.scale",
      "title": "Permute the dataset by the largest absolute value in each eigenvector, and scale",
      "topics": [
        "permutation.scale"
      ]
    },
    {
      "page": "sim.data",
      "title": "Simulated data for BCFM model",
      "topics": [
        "sim.data"
      ]
    }
  ],
  "_readme": "https://github.com/ategge/bcfm/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "boot",
    "broom",
    "car",
    "carData",
    "cli",
    "colorspace",
    "corrplot",
    "cowplot",
    "cpp11",
    "Deriv",
    "doBy",
    "dplyr",
    "farver",
    "fastmatrix",
    "forecast",
    "Formula",
    "fracdiff",
    "generics",
    "ggplot2",
    "ggpubr",
    "ggrepel",
    "ggsci",
    "ggsignif",
    "glue",
    "GPArotation",
    "gridExtra",
    "gtable",
    "isoband",
    "labeling",
    "LaplacesDemon",
    "lattice",
    "lifecycle",
    "lme4",
    "lmtest",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "mgcv",
    "microbenchmark",
    "minqa",
    "mnormt",
    "modelr",
    "mvtnorm",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "pbkrtest",
    "pillar",
    "pkgconfig",
    "polynom",
    "psych",
    "purrr",
    "quantreg",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "rlang",
    "rstatix",
    "S7",
    "scales",
    "SparseM",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "timeDate",
    "urca",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "zoo"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "introduction-to-BCFM.Rmd",
      "filename": "introduction-to-BCFM.html",
      "title": "Getting Started with BCFM: A Complete Workflow",
      "author": "Allison Tegge, Virginia Tech",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Load and Explore the Data",
        "Model Selection",
        "Examining Output Files",
        "Visualization",
        "Factor Loadings Matrix",
        "Latent Profiles",
        "Cluster Means",
        "Cluster Probabilities",
        "Density Plots",
        "Trace Plots",
        "Cluster Assignments Heatmap",
        "Additional Visualizations",
        "Interpreting Results",
        "Cluster Assignments",
        "Factor Loadings",
        "Cluster Characteristics",
        "Convergence Diagnostics",
        "Variance Components",
        "Accessing Model Components",
        "Summary",
        "Session Info"
      ],
      "created": "2025-10-09 19:15:31",
      "modified": "2026-02-07 03:36:25",
      "commits": 9
    }
  ],
  "_score": 4.6020599913279625,
  "_indexed": true,
  "_nocasepkg": "bcfm",
  "_universes": [
    "ategge"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-12T07:26:12.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "e53869492cce50f7c4b4fbc829b2d494f89abc2c",
      "fileid": "20419a3b8cbec4d97acfe0d9ff137ef4ade6842ac367dd21e7f56b546838bec4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ategge/actions/runs/25719630247"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-12T07:26:19.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "e53869492cce50f7c4b4fbc829b2d494f89abc2c",
      "fileid": "9760850ccc293854942310171f8db746768840194ec096cf45bdaa162a5e50bf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ategge/actions/runs/25719630247"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-12T07:26:08.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "e53869492cce50f7c4b4fbc829b2d494f89abc2c",
      "fileid": "13a8939743bbd0f6da91d3edc59fd583326a87f60cff948c04652fc448d26c72",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ategge/actions/runs/25719630247"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.0",
      "date": "2026-05-12T07:26:20.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "e53869492cce50f7c4b4fbc829b2d494f89abc2c",
      "fileid": "f751d413d405a2cb2caa7b70e860a0f27a86b45a63322234d856fe7a3635b5a0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ategge/actions/runs/25719630247"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-05-12T07:26:06.000Z",
      "arch": "aarch64",
      "commit": "e53869492cce50f7c4b4fbc829b2d494f89abc2c",
      "fileid": "6cf0f24a2b5e46632fdd6c3f3aefa7eae37e64cc4d58005237c3204f2cc8ae45",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ategge/actions/runs/25719630247"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-05-12T07:27:43.000Z",
      "arch": "x86_64",
      "commit": "e53869492cce50f7c4b4fbc829b2d494f89abc2c",
      "fileid": "8357d142b59bc7a1d822eb8095621bd718104ea98cefd03e9a16c2dc4ee3fcf9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ategge/actions/runs/25719630247"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-05-12T07:26:31.000Z",
      "arch": "aarch64",
      "commit": "e53869492cce50f7c4b4fbc829b2d494f89abc2c",
      "fileid": "8f1b3255063429a9a7665621714cdf6b478fefe25257e49c652549c8d9d1aa0f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ategge/actions/runs/25719630247"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.0",
      "date": "2026-05-12T07:28:22.000Z",
      "arch": "x86_64",
      "commit": "e53869492cce50f7c4b4fbc829b2d494f89abc2c",
      "fileid": "832d95c40275992e409cc4c46fb8b2cf386fd12628c1463fc5663fc7fe9c9839",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ategge/actions/runs/25719630247"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-12T07:25:31.000Z",
      "arch": "x86_64",
      "commit": "e53869492cce50f7c4b4fbc829b2d494f89abc2c",
      "fileid": "769ae11f603d6576320681e3864cee8f1aa4684265743a85d7442c066bf98b51",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ategge/actions/runs/25719630247"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-12T07:25:02.000Z",
      "arch": "x86_64",
      "commit": "e53869492cce50f7c4b4fbc829b2d494f89abc2c",
      "fileid": "a320fbf51111e60ffdabc1046933a7a542e7eadf89fc8eea8238327ddec1ab06",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ategge/actions/runs/25719630247"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.0",
      "date": "2026-05-12T07:25:43.000Z",
      "arch": "x86_64",
      "commit": "e53869492cce50f7c4b4fbc829b2d494f89abc2c",
      "fileid": "c66476d16f9cc22c1e237cf44c62b8b97576f5bdffffd50d679c94caec42a4b6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ategge/actions/runs/25719630247"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.0",
      "date": "2026-05-22T10:51:01.000Z",
      "arch": "emscripten",
      "commit": "e53869492cce50f7c4b4fbc829b2d494f89abc2c",
      "fileid": "1e72b707b57538544b15a7cd0732112f22f8f50337308a6611a9bc762b2a35c7",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ategge/actions/runs/25719630247"
    }
  ]
}