Mermaid flowchart for Statistical Test Selection

---
config:
  look: handDrawn
  theme: neutral
  flowchart:
    diagramPadding: 80
---

graph LR
    _DV{"#DV"}
    _DV_One_DV_br_type{"DV<br>type"}
    _DV_One_DV_br_type_Continuous_IV{"#IV"}
    _DV_One_DV_br_type_Continuous_IV_One_IV_br_type{"IV<br>type"}
    _DV_One_DV_br_type_Continuous_IV_One_IV_br_type_Categorical_IV_br_cat{"IV<br>cat"}
    _DV_One_DV_br_type_Continuous_IV_One_IV_br_type_Categorical_IV_br_cat_Two_Samp{"Samp"}
    _DV_One_DV_br_type_Continuous_IV_One_IV_br_type_Categorical_IV_br_cat_More_than_two_Samp{"Samp"}
    _DV_One_DV_br_type_Continuous_IV_Two_or_more_IV_br_type{"IV<br>type"}
    _DV_One_DV_br_type_Continuous_IV_Two_or_more_IV_br_type_Categorical_Samp{"Samp"}
    _DV_One_DV_br_type_Dichotomy_IV{"#IV"}
    _DV_One_DV_br_type_Dichotomy_IV_One_IV_br_type{"IV<br>type"}
    _DV_One_DV_br_type_Categorical_IV{"#IV"}
    _DV_One_DV_br_type_Categorical_IV_One_IV_br_type{"IV<br>type"}
    _DV_One_DV_br_type_Categorical_IV_One_IV_br_type_Categorical_Samp{"Samp"}
    _DV_One_DV_br_type_Categorical_IV_Two_or_more_IV_br_type{"IV<br>type"}
    _DV_One_DV_br_type_Categorical_IV_Two_or_more_IV_br_type_Categorical_Samp{"Samp"}
    _DV_One_DV_br_type_Categorical_IV_Two_or_more_IV_br_type_Both_Samp{"Samp"}
    _DV_Two_or_more_DV_br_type{"DV<br>type"}
    _DV_Two_or_more_DV_br_type_Continuous_IV{"#IV"}
    _DV_Two_or_more_DV_br_type_Continuous_IV_One_IV_br_type{"IV<br>type"}
    _DV_Two_or_more_DV_br_type_Continuous_IV_One_IV_br_type_Categorical_Samp{"Samp"}
    _DV_Two_or_more_DV_br_type_Continuous_IV_Two_or_more_IV_br_type{"IV<br>type"}
    _DV_Two_or_more_DV_br_type_Continuous_IV_Two_or_more_IV_br_type_Categorical_Samp{"Samp"}
    subgraph parametric_tests["Parametric Tests"]
        One_sample_T_test["One-sample T-test"]
        Pearson_correlation_or_regression["Pearson correlation or regression"]
        Paired_samples_T_test_Dependent_T_test["Paired-samples T-test (Dependent T-test)"]
        Independent_T_test_or_Pointbiserial_correlation["Independent T-test or Pointbiserial correlation"]
        One_way_repeated_measures_ANOVA["One-way repeated measures ANOVA"]
        One_way_independent_ANOVA["One-way independent ANOVA"]
        Multiple_regression["Multiple regression"]
        Factorial_repeated_measures_ANOVA["Factorial repeated measures ANOVA"]
        Independent_factorial_ANOVA_multiple_regression["Independent factorial ANOVA/multiple regression"]
        Factorial_mixed_ANOVA["Factorial mixed ANOVA"]
        Multiple_regression_ANCOVA["Multiple regression/ANCOVA"]
        Binomial_test_z_test_on_proportion["Binomial test, z test on proportion"]
        Fisher_exact_test["Fisher exact test"]
        Crosstabs_chi_squared_test["Crosstabs chi-squared test"]
        One_sample_chi_squared_test["One-sample chi-squared test"]
        Logistic_regression_or_biserial_point_biserialcorrelation["Logistic regression or biserial/point biserialcorrelation"]
        Pearson_chi_square_or_likelihood_ratio["Pearson chi-square or likelihood ratio"]
        Logistic_regression["Logistic regression"]
        Loglinear_analysis["Loglinear analysis"]
        MANOVA["MANOVA"]
        Factorial_MANOVA["Factorial MANOVA"]
        MANCOVA["MANCOVA"]
    end
    subgraph nonparametric_tests["Non-Parametric Tests"]
        Bootstrapped_T_test["Bootstrapped T-test"]
        Bootstrap_correlation_regression_Spearman_correlation_Kendall_s_tau["Bootstrap correlation/regression, Spearman correlation, Kendall's tau"]
        Bootstrapped_T_test_or_Wilcoxon_signed_rank_test["Bootstrapped T-test or Wilcoxon signed-rank test"]
        Bootstrapped_T_test_or_Mann_Whitney_test["Bootstrapped T-test or Mann-Whitney test"]
        Bootstrapped_ANOVA_or_Friedman_s_ANOVA["Bootstrapped ANOVA or Friedman's ANOVA"]
        Robust_ANOVA_or_Kruskal_Wallis_test["Robust ANOVA or Kruskal-Wallis test"]
        Bootstrapped_multiple_regression["Bootstrapped multiple regression"]
        Robust_factorial_repeated_measures_ANOVA["Robust factorial repeated measures ANOVA"]
        Robust_independent_factorial_ANOVA_multiple_regression["Robust independent factorial ANOVA/multiple regression"]
        Robust_factorial_mixed_ANOVA["Robust factorial mixed ANOVA"]
        Robust_ANCOVA_bootstrapped_regression["Robust ANCOVA/bootstrapped regression"]
    end
    _DV -->|"One"| _DV_One_DV_br_type
    _DV_One_DV_br_type -->|"Continuous"| _DV_One_DV_br_type_Continuous_IV
    _DV_One_DV_br_type_Continuous_IV -->|"None"| One_sample_T_test
    One_sample_T_test --> Bootstrapped_T_test
    _DV_One_DV_br_type_Continuous_IV -->|"One"| _DV_One_DV_br_type_Continuous_IV_One_IV_br_type
    _DV_One_DV_br_type_Continuous_IV_One_IV_br_type -->|"Continuous"| Pearson_correlation_or_regression
    Pearson_correlation_or_regression --> Bootstrap_correlation_regression_Spearman_correlation_Kendall_s_tau
    _DV_One_DV_br_type_Continuous_IV_One_IV_br_type -->|"Categorical"| _DV_One_DV_br_type_Continuous_IV_One_IV_br_type_Categorical_IV_br_cat
    _DV_One_DV_br_type_Continuous_IV_One_IV_br_type_Categorical_IV_br_cat -->|"Two"| _DV_One_DV_br_type_Continuous_IV_One_IV_br_type_Categorical_IV_br_cat_Two_Samp
    _DV_One_DV_br_type_Continuous_IV_One_IV_br_type_Categorical_IV_br_cat_Two_Samp -->|"Dependent"| Paired_samples_T_test_Dependent_T_test
    Paired_samples_T_test_Dependent_T_test --> Bootstrapped_T_test_or_Wilcoxon_signed_rank_test
    _DV_One_DV_br_type_Continuous_IV_One_IV_br_type_Categorical_IV_br_cat_Two_Samp -->|"Independent"| Independent_T_test_or_Pointbiserial_correlation
    Independent_T_test_or_Pointbiserial_correlation --> Bootstrapped_T_test_or_Mann_Whitney_test
    _DV_One_DV_br_type_Continuous_IV_One_IV_br_type_Categorical_IV_br_cat -->|"More than two"| _DV_One_DV_br_type_Continuous_IV_One_IV_br_type_Categorical_IV_br_cat_More_than_two_Samp
    _DV_One_DV_br_type_Continuous_IV_One_IV_br_type_Categorical_IV_br_cat_More_than_two_Samp -->|"Dependent"| One_way_repeated_measures_ANOVA
    One_way_repeated_measures_ANOVA --> Bootstrapped_ANOVA_or_Friedman_s_ANOVA
    _DV_One_DV_br_type_Continuous_IV_One_IV_br_type_Categorical_IV_br_cat_More_than_two_Samp -->|"Independent"| One_way_independent_ANOVA
    One_way_independent_ANOVA --> Robust_ANOVA_or_Kruskal_Wallis_test
    _DV_One_DV_br_type_Continuous_IV -->|"Two or more"| _DV_One_DV_br_type_Continuous_IV_Two_or_more_IV_br_type
    _DV_One_DV_br_type_Continuous_IV_Two_or_more_IV_br_type -->|"Continuous"| Multiple_regression
    Multiple_regression --> Bootstrapped_multiple_regression
    _DV_One_DV_br_type_Continuous_IV_Two_or_more_IV_br_type -->|"Categorical"| _DV_One_DV_br_type_Continuous_IV_Two_or_more_IV_br_type_Categorical_Samp
    _DV_One_DV_br_type_Continuous_IV_Two_or_more_IV_br_type_Categorical_Samp -->|"Dependent"| Factorial_repeated_measures_ANOVA
    Factorial_repeated_measures_ANOVA --> Robust_factorial_repeated_measures_ANOVA
    _DV_One_DV_br_type_Continuous_IV_Two_or_more_IV_br_type_Categorical_Samp -->|"Independent"| Independent_factorial_ANOVA_multiple_regression
    Independent_factorial_ANOVA_multiple_regression --> Robust_independent_factorial_ANOVA_multiple_regression
    _DV_One_DV_br_type_Continuous_IV_Two_or_more_IV_br_type_Categorical_Samp -->|"Both"| Factorial_mixed_ANOVA
    Factorial_mixed_ANOVA --> Robust_factorial_mixed_ANOVA
    _DV_One_DV_br_type_Continuous_IV_Two_or_more_IV_br_type -->|"Both"| Multiple_regression_ANCOVA
    Multiple_regression_ANCOVA --> Robust_ANCOVA_bootstrapped_regression
    _DV_One_DV_br_type -->|"Dichotomy"| _DV_One_DV_br_type_Dichotomy_IV
    _DV_One_DV_br_type_Dichotomy_IV -->|"None"| Binomial_test_z_test_on_proportion
    _DV_One_DV_br_type_Dichotomy_IV -->|"One"| _DV_One_DV_br_type_Dichotomy_IV_One_IV_br_type
    _DV_One_DV_br_type_Dichotomy_IV_One_IV_br_type -->|"Dichotomy"| Fisher_exact_test
    _DV_One_DV_br_type_Dichotomy_IV_One_IV_br_type -->|"Categorical"| Crosstabs_chi_squared_test
    _DV_One_DV_br_type -->|"Categorical"| _DV_One_DV_br_type_Categorical_IV
    _DV_One_DV_br_type_Categorical_IV -->|"None"| One_sample_chi_squared_test
    _DV_One_DV_br_type_Categorical_IV -->|"One"| _DV_One_DV_br_type_Categorical_IV_One_IV_br_type
    _DV_One_DV_br_type_Categorical_IV_One_IV_br_type -->|"Continuous"| Logistic_regression_or_biserial_point_biserialcorrelation
    _DV_One_DV_br_type_Categorical_IV_One_IV_br_type -->|"Categorical"| _DV_One_DV_br_type_Categorical_IV_One_IV_br_type_Categorical_Samp
    _DV_One_DV_br_type_Categorical_IV_One_IV_br_type_Categorical_Samp -->|"Independent"| Pearson_chi_square_or_likelihood_ratio
    _DV_One_DV_br_type_Categorical_IV -->|"Two or more"| _DV_One_DV_br_type_Categorical_IV_Two_or_more_IV_br_type
    _DV_One_DV_br_type_Categorical_IV_Two_or_more_IV_br_type -->|"Continuous"| Logistic_regression
    _DV_One_DV_br_type_Categorical_IV_Two_or_more_IV_br_type -->|"Categorical"| _DV_One_DV_br_type_Categorical_IV_Two_or_more_IV_br_type_Categorical_Samp
    _DV_One_DV_br_type_Categorical_IV_Two_or_more_IV_br_type_Categorical_Samp -->|"Independent"| Loglinear_analysis
    _DV_One_DV_br_type_Categorical_IV_Two_or_more_IV_br_type -->|"Both"| _DV_One_DV_br_type_Categorical_IV_Two_or_more_IV_br_type_Both_Samp
    _DV_One_DV_br_type_Categorical_IV_Two_or_more_IV_br_type_Both_Samp -->|"Independent"| Logistic_regression
    _DV -->|"Two or more"| _DV_Two_or_more_DV_br_type
    _DV_Two_or_more_DV_br_type -->|"Continuous"| _DV_Two_or_more_DV_br_type_Continuous_IV
    _DV_Two_or_more_DV_br_type_Continuous_IV -->|"One"| _DV_Two_or_more_DV_br_type_Continuous_IV_One_IV_br_type
    _DV_Two_or_more_DV_br_type_Continuous_IV_One_IV_br_type -->|"Categorical"| _DV_Two_or_more_DV_br_type_Continuous_IV_One_IV_br_type_Categorical_Samp
    _DV_Two_or_more_DV_br_type_Continuous_IV_One_IV_br_type_Categorical_Samp -->|"Independent"| MANOVA
    _DV_Two_or_more_DV_br_type_Continuous_IV -->|"Two or more"| _DV_Two_or_more_DV_br_type_Continuous_IV_Two_or_more_IV_br_type
    _DV_Two_or_more_DV_br_type_Continuous_IV_Two_or_more_IV_br_type -->|"Categorical"| _DV_Two_or_more_DV_br_type_Continuous_IV_Two_or_more_IV_br_type_Categorical_Samp
    _DV_Two_or_more_DV_br_type_Continuous_IV_Two_or_more_IV_br_type_Categorical_Samp -->|"Independent"| Factorial_MANOVA
    _DV_Two_or_more_DV_br_type_Continuous_IV_Two_or_more_IV_br_type -->|"Both"| MANCOVA

    style parametric_tests fill:#cce5ff,stroke:#333
    style nonparametric_tests fill:#d4edda,stroke:#333
Figure 1: Statistical test selection flowchart