MultipleTesting.AdjustPValues Method

Adjusts p-values using the specified adjustment method.

Definition

Namespace: Numerics.NET.Statistics.Tests
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.2
C#
public static Vector<double> AdjustPValues(
	Vector<double> pValues,
	PValueAdjustmentMethod method
)

Parameters

pValues  Vector<Double>
A vector of raw p-values.
method  PValueAdjustmentMethod
The adjustment method to apply.

Return Value

Vector<Double>
A vector of adjusted p-values.

Remarks

This method applies the chosen adjustment method to control error rates in multiple hypothesis testing. Ensure the method is appropriate for the data and test dependencies. See PValueAdjustmentMethod for details.

Exceptions

ArgumentNullException

pValues is null.

ArgumentOutOfRangeException

method is not a valid adjustment method.

See Also