Provides core French school multivariate analysis methods including Multiple Factor Analysis (MFA), Penalized MFA, STATIS, DISTATIS, variants of Correspondence Analysis (BADA, BAMFA), and Generalized
翻译准备中
数据R · CSSGitHub @bbuchsbaum在线运营者未确认
试用过了吗? 点一下就好,无需登录。
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Provides core French school multivariate analysis methods including Multiple Factor Analysis (MFA), Penalized MFA, STATIS, DISTATIS, variants of Correspondence Analysis (BADA, BAMFA), and Generalized Procrustes Analysis. Also includes essential utility functions for data simulation, testing, and processing potentially used by related statistical packages.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗muscal is an R package for multiblock and matrix-based multivariate analysis.
It focuses on methods for integrating several tables measured on the same
observations, linked designs with partial overlap, and repeated
covariance/connectivity matrices.
The package includes classical "French school" methods such as Multiple Factor
Analysis (MFA) and STATIS-style workflows, along with newer extensions for
adaptive weighting, regularization, and repeated-matrix modeling. Most fitted
objects work naturally with the multivarious ecosystem for scoring,
projection, and preprocessing.
mfa() for several data blocks measured on the same observations.ipca() when you want adaptive block weighting instead of fixed MFA
normalization.penalized_mfa() when you want MFA with loading-similarity penalties.anchored_mfa() for linked blocks that map back to a reference table but do
not share identical rows.response_aligned_mfa() when blocks have paired multivariate responses but
do not share exact response rows.aligned_rrr() as the pure shared reduced-rank regression baseline for the
same response-prediction setting.aligned_mfa() and aligned_mcca() for aligned multiblock integration and
correlation analysis.covstatis() for lists of covariance or connectivity matrices.distatis() for distance matrices on the same objects, including sorting
tasks converted with sorting_distances().bada() and bamfa() for barycentric and discriminant variants.bilinear_mixed() for repeated connectivity matrices with subject- and
design-level structure.design_mfa() for trialwise multivariate fields decomposed by named design
effects, with subject-aware weighting, coordinate-derived sparse alignment,
and held-out or nested tuning via tune_design_mfa() and
nested_tune_design_mfa(). Despite the API name, this is an
ASCA+/partial-RDA-style design decomposition; it does not apply MFA block
normalization.Install the package from r-universe:
install.packages(
"muscal",
repos = c("https://bbuchsbaum.r-universe.dev", "https://cloud.r-project.org")
)
Or install the current GitHub version with pak:
install.packages("pak")
pak::pak("bbuchsbaum/muscal")
library(muscal)
sim <- synthetic_multiblock(
S = 4,
n = 60,
p = c(20, 30, 15, 25),
r = 3,
sigma = 0.3,
seed = 42
)
fit <- mfa(sim$data_list, ncomp = 3)
dim(multivarious::scores(fit))
#> [1] 60 3
plot_variance(fit, type = "bar")
ggplot2::autoplot(fit)
That example covers the most common case: several feature blocks measured on the same subjects. If your data are linked across uneven row sets, covariance matrices, or repeated connectivity observations, jump to the method-specific articles below.
Beyond the core factor methods, muscal also includes helpers for simulation
(synthetic_multiblock()), component estimation
(estimate_components(), significant_components()), projection of new data,
and a fairly broad set of plotting helpers for scores, loadings, block weights,
partial scores, convergence traces, and coverage diagnostics.
For local site builds, use Rscript scripts/build-pkgdown.R. On this setup,
the default pkgdown::build_site() call can fail in its callr subprocess
even when the package itself installs and the GitHub Pages build path works.