perform_continuous_test: Perform statistical tests for continuous variables

View source: R/desc_utils.R

perform_continuous_testR Documentation

Perform statistical tests for continuous variables

Description

Conducts hypothesis tests comparing continuous variables across groups. Supports t-tests, Wilcoxon tests, ANOVA, and Kruskal-Wallis tests with automatic selection based on number of groups.

Usage

perform_continuous_test(var_vec, grp_vec, test_type, stat_type)

Arguments

var_vec

Numeric vector of the continuous variable.

grp_vec

Factor or character vector defining groups.

test_type

Character string: "parametric", "nonparametric", or "auto".

stat_type

Character string indicating primary statistic being tested.

Value

Numeric p-value from the hypothesis test.


summata documentation built on May 7, 2026, 5:07 p.m.