Methods for Cross-Cultural Psychology
Overview
Combines multiple functions that automate and simplify methods commonly employed in cross-cultural psychology, providing a unified analysis approach for measurement invariance testing, effect sizes for differential item functioning, factor congruence and multi-group reliability. Methods follow Fischer and Karl (2019) doi:10.3389/fpsyg.2019.01507 and Gunn, Grimm and Edwards (2020) doi:10.1080/10705511.2019.1689507.
CRAN compliance
- Removed the dependency on **ufs**, which is scheduled for archival on CRAN.
mg_rel_table()no longer callsufs::scaleStructure(); the internal consistency measures are now computed inside ccpsyc using **lavaan** and **psych**, both of which were already imported. clearing_fa()no longer callsxlsx::read.xlsx(). The **xlsx** package was not declared inImports, which caused an undeclared-dependency check failure. Excel key files are now read with **readxl** (moved toSuggests), which also removes the Java requirement. Supplying an.xlsxkey file without readxl installed now raises an informative error.calculate_dif_indices()is now actually exported and documented; it was tagged for export but missing fromNAMESPACE.
Show all changes in 0.2.8Hide the rest of the changes in 0.2.8
- Declared
statsinImportsand dropped the unusedrlangdependency. - Removed the redundant
data/example.csv, which duplicateddata/example.rdaand defined the sameexampleobject.
Bug fixes
release_bonferroni()passed the rlang.datapronoun as a data argument todplyr::filter(), causing the function to error.splitgroup()used an invalid column selection that could not work as written; it now drops the grouping column and returns the remaining ones.pancultural()signalled an error withprint()rather thanstop(), and coercednfactorsto character before passing it topsych::principal().gamma_hat_scaled()no longer computes an unused quantity.
Changes in reported statistics
- The
glbcolumn ofmg_rel_table()now reports the maximum split-half reliability (Guttman's lambda 4) viapsych::splitHalf(). The previous route,psych::glb(), callspsych::ICLUST(), which draws a diagram even whenplot = FALSEand therefore fails whenever no graphics device has been initialised. Values are very close to, but not always identical to, those reported previously. - Alpha and omega confidence intervals are now computed analytically rather than through the previous wrapper. Alpha reproduces the normal-theory interval exactly; omega is estimated from a single-factor congeneric model with a delta-method interval. The
seedargument ofmg_rel_table()is retained for backward compatibility but is no longer used, and aconf.levelargument has been added. - Measures that cannot be estimated for a group (fewer than three items, or a model that fails to converge) now return
NAinstead of erroring.
Documentation and tests
- Added runnable examples for
dMACS(),mg_rel_table()andcalculate_dif_indices(). - Internal helpers
MNCI()andgamma_hat_scaled()are no longer given.Rdpages, which lacked\valuesections. - Added tests for
mg_rel_table()and added tolerances to the existing numerical tests so they are robust across BLAS implementations.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-04-06
- ERROR13 OK, 1 ERROR2026-04-04
- OK14 OK2026-03-10
Documentation
- Help pages
- 16 (1 internal)
- Examples that run
- 22%2 run in a plain check · 7 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 60%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 185
- Median days to close, 50 most recently updated closed PRs
- not measured
1 development-tooling and community-health practice detected across 1 family in the upstream repository
Checks run against github.com/jo-karl/ccpsyc on 2026-10-25.
Dependencies
Installing ccpsyc adds 45 packages (26 with compiled code, 30 MB of source tarballs). Heaviest: stringi 11 MB, GPArotation 1.6 MB, RcppAlgos 1.6 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.2.8Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.2.62022-05-11
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2022-05-11
- Total releases
- 2 / 4 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.0.0
- Bundled data
- 21 KB / 1 file
- Download size
- 51 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("ccpsyc")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.