global_pillai: Global Pillai trace (point estimate)

View source: R/pillai_bhatt.R

global_pillaiR Documentation

Global Pillai trace (point estimate)

Description

Computes a single Pillai-Bartlett trace for the full dataset in the specified feature space, returning a one-row data frame that includes the total number of tokens used.

Usage

global_pillai(data, features, category_col, min_tokens = 20)

Arguments

data

Data frame.

features

Character vector of numeric feature columns.

category_col

String; column with category labels (>= 2 levels).

min_tokens

Minimum total tokens required after removing missing values.

Value

A one-row data frame with columns: n_tokens, pillai, and p_value.


phontrast documentation built on Oct. 7, 2026, 5:06 p.m.