name: op-test-manova
description: One-way MANOVA of a mean vector of p numeric members across a split_by of 2+ levels; Pillai's trace headline, with Wilks, Hotelling–Lawley and Roy in details.
kind: operator
category: TEST
operator: TEST_MANOVA
type: reference
applies_to: process, compose, predict
examples_tags: [hypothesis-test, tier-1-test, parametric, multivariate, streaming-friendly]
No Response.Components.
Use when
Checks whether several numeric fields, taken together as one profile, differ across two or more groups.
Questions it answers:
- Do our customer segments differ on the whole set of spend, visit and basket metrics at once?
- Do the three store formats differ on their combined service ratings?
Use something else:
TEST_ANOVA_Fwhen there is only one numeric field.
Params
alpha is a top-level key; the rest go in params.
| Name | Type | Default | Description |
|---|---|---|---|
alpha | float | 0.05 | Significance level in (0, 1); reject_null when p < alpha. |
missing | enum | listwise | Missing-data mode; only listwise (a row with any null member is dropped). |
Slot: exactly one of vector (a vectors entry) / fields (inline, globs ok); no field, no vector2 / fields2. split_by required, categorical or packed_bool (levels "0"/"1"), ≥ 2 levels.
weight— both kinds (detailsaddsum_weights).
Inputs
Members: numeric (## Contract).
Output
statistic = Pillai’s V, df = its df1, p_value its p. details: Pillai’s f, df1, df2, members, groups, n, means, eigenvalues, and pillai / wilks / hotelling_lawley / roy, each {statistic, f, df1, df2, p_value} (multivariate-outputs). variant: one_way.
Reading the output
statistic: Pillai’s trace, between 0 and the smaller of the field count and the group count minus one, sums how much of the fields’ joint spread lies between the group average profiles; larger values are stronger evidence that the profiles differ; the p-value says whether it is large enough to be surprising.p_value: a p-value. Below alpha (0.05 unless the request sets another) the result is called significant; that is not the same as important, so read the effect size for how big it is.
Contract
- Member types (
vector,fields):f32,f64,packed_bool,u16,u32,u4,u64,u8(packed_boolonly undercoerce: "binary"; avec_*field’s elements are members); any other isPULSE_VECTOR_MEMBER_TYPE. - Types (
split_by):categorical_*,packed_bool; any other scalar type isPULSE_FIELD_TYPE_UNSUPPORTED. - Weight: weighted under
frequencyandprobabilityweights. - Multiplicity: a
multiplicitymethod addsp_adjustedandsignificant_adjustedbeside the raw p; familiesrequest(default),compose(inside Compose). - Streaming: streamable.
Gotchas
- Streamable. Needs n ≥ p + k rows (Σw under
frequency); 1 level isPULSE_TEST_SPLIT_GROUPS_LT_2. - Singular within SSCP: null figures +
PULSE_MATRIX_SINGULAR. - Roy’s p is a lower bound; a null
p_valuemeans R prints NA. - 2 levels: all four share one F (= pooled
TEST_HOTELLING_T2).
See
pulse_examples_search tags=[multivariate]- Skills:
statistical-testing,multivariate-outputs,op-test-hotelling-t2,op-test-anova-f