Prepares the data and computes descriptive statistics and t-tests for groups defined by combinations of categorical factors.
mfcurve_preprocessing(data, outcome, factors, alpha = 0.05, test = "mean")A list with:
Data frame with computed statistics and CI bounds.
Visualization-ready version with rounded values.
Data for the lower panel (without y positions).
Overall mean of the outcome variable.
Confidence level used.
Data frame containing the variables.
Name of the numeric outcome variable (string).
Character vector of factor variable names for grouping.
Significance level for the t-tests and confidence intervals. Default is 0.05.
Reference for t-tests: "mean" (grand mean), "leave-one-out" (mean of all other groups), or "zero" (testing against 0).