analysis_robustness: Robustness analysis

Description Usage Arguments Value Note Examples

View source: R/analysis_robustness.R

Description

Two alternative variants of the Bayesian proportion test in the primary confirmatory analysis: frequentist proportion test (see robustness_nhst_analysis), and full-Bayesian hypothesis testing using parameter estimation (see robustness_bf_analysis).

Usage

1
analysis_robustness(confirmatory_results)

Arguments

confirmatory_results

list, output of the analysis_confirmatory function

Value

The function returns a list containing the results of the frequentist proportion test and the Bayesian parameter estimation as nested lists, the final inference of the robustness test as a character vector, and the results of the confirmatory mixed effect regression confirmatory_mixed_effect.

Note

Robustness analysis results will not affect the conclusions of our study.

Examples

1
2
3
4
# Running the primary confirmatory analysis
confirmatory_results <- analysis_confirmatory(df = example_m0)
# Running the robustness analysis
analysis_robustness(confirmatory_results = confirmatory_results)

marton-balazs-kovacs/tppr documentation built on Oct. 27, 2021, 3:04 p.m.