Code

Analysis Code: Validation of the Moral Foundations Questionnaire-2 (MFQ-2) in Germany: Psychometric properties and associations with political ideology, religiosity, and personality

Author(s) / Creator(s)

Musa, Nico Sebastian
Müller, Sarah Marie
Hopp, Frederic René

Abstract / Description

This object contains the complete analysis code underlying the Stage 2 Registered Report "Validation of the Moral Foundations Questionnaire-2 (MFQ-2) in Germany: Psychometric properties and associations with political ideology, religiosity, and personality". Five R scripts are provided: a standalone screening helper used during data collection for compensation decisions; a data-preparation script implementing the pre-registered case-wise exclusions, scale construction and grouping variables; the main analysis script, which reproduces all reported analyses, tables and figures (descriptives and distributional diagnostics; ESEM and CFA structural validation with split-sample cross-validation and model selection; McDonald's omega reliability; measurement invariance across gender and age cohorts; the nomological network; exploratory analyses with Benjamini-Hochberg correction; and additional analyses not specified in the protocol, including correlation confidence intervals, full loading matrices and invariance per subscale); a verification script asserting 238 reported values against the script output; and a rendering script that turns the analysis and verification scripts, unchanged, into HTML reports. The two HTML reports of a complete run are included, together with PDF/A copies for long-term preservation, so that all code and console output can be inspected without re-running the analyses. All analyses are deterministic: RNGkind is pinned and set.seed(2026) is set, so repeated runs return identical values and bit-identical figures. The run environment is documented in session_info.txt (R 4.6.1 and all package versions). The scripts operate on the dataset deposited as a separate object of the type Research Data within the same submission.

Persistent Identifier

Date of first publication

2026-11-06

Publisher

PsychArchives

Is referenced by

Citation

  • Author(s) / Creator(s)
    Musa, Nico Sebastian
  • Author(s) / Creator(s)
    Müller, Sarah Marie
  • Author(s) / Creator(s)
    Hopp, Frederic René
  • PsychArchives acquisition timestamp
    2026-11-06T13:19:18Z
  • Made available on
    2026-11-06T13:19:18Z
  • Date of first publication
    2026-11-06
  • Abstract / Description
    This object contains the complete analysis code underlying the Stage 2 Registered Report "Validation of the Moral Foundations Questionnaire-2 (MFQ-2) in Germany: Psychometric properties and associations with political ideology, religiosity, and personality". Five R scripts are provided: a standalone screening helper used during data collection for compensation decisions; a data-preparation script implementing the pre-registered case-wise exclusions, scale construction and grouping variables; the main analysis script, which reproduces all reported analyses, tables and figures (descriptives and distributional diagnostics; ESEM and CFA structural validation with split-sample cross-validation and model selection; McDonald's omega reliability; measurement invariance across gender and age cohorts; the nomological network; exploratory analyses with Benjamini-Hochberg correction; and additional analyses not specified in the protocol, including correlation confidence intervals, full loading matrices and invariance per subscale); a verification script asserting 238 reported values against the script output; and a rendering script that turns the analysis and verification scripts, unchanged, into HTML reports. The two HTML reports of a complete run are included, together with PDF/A copies for long-term preservation, so that all code and console output can be inspected without re-running the analyses. All analyses are deterministic: RNGkind is pinned and set.seed(2026) is set, so repeated runs return identical values and bit-identical figures. The run environment is documented in session_info.txt (R 4.6.1 and all package versions). The scripts operate on the dataset deposited as a separate object of the type Research Data within the same submission.
    en
  • Publication status
    unknown
  • Review status
    unknown
  • Persistent Identifier
    https://hdl.handle.net/20.500.12034/18033
  • Persistent Identifier
    https://doi.org/10.23668/psycharchives.22701
  • Language of content
    eng
  • Publisher
    PsychArchives
  • Is referenced by
    https://doi.org/10.1371/journal.pone.0345599
  • Is related to
    https://doi.org/10.23668/psycharchives.21651
  • Is related to
    https://www.psycharchives.org/handle/20.500.12034/18032
  • Dewey Decimal Classification number(s)
    150
  • Title
    Analysis Code: Validation of the Moral Foundations Questionnaire-2 (MFQ-2) in Germany: Psychometric properties and associations with political ideology, religiosity, and personality
    en
  • DRO type
    code
  • Leibniz institute name(s) / abbreviation(s)
    ZPID