Friedman Test Constructor
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
Overload List
| Friedman | Constructs a new FriedmanTest for the specified matrix of repeated-measures data. |
| Friedman | Constructs a new FriedmanTest for the specified treatment vectors. |
| Friedman | Constructs a new FriedmanTest for long-form repeated-measures data. |
FriedmanTest(Matrix<Double>)
public FriedmanTest(
Matrix<double> data
)Parameters
Remarks
Rows are interpreted as blocks, and columns are interpreted as treatments.
The matrix must contain at least two rows and at least three columns.
Exceptions
| Argument | data is null. |
| Argument | data has fewer than two rows. -or- data has fewer than three columns. |
FriedmanTest(Vector<Double>[])
public FriedmanTest(
params Vector<double>[] treatments
)Parameters
Remarks
The Friedman test requires at least three treatment vectors.
All treatment vectors must be non-null, have equal length, and contain at least two blocks.
Exceptions
| Argument | treatments is null. -or- One of the treatment vectors is null. |
| Argument | Fewer than three treatments were supplied. -or- Fewer than two blocks were supplied. |
| Dimension | The treatment vectors do not all have the same length. |
FriedmanTest(Vector<Double>, ICategoricalVector, ICategoricalVector)
public FriedmanTest(
Vector<double> values,
ICategoricalVector treatments,
ICategoricalVector blocks
)Parameters
- values Vector<Double>
- A vector containing the observed values.
- treatments ICategoricalVector
- A categorical vector that identifies the treatment or condition for each value.
- blocks ICategoricalVector
- A categorical vector that identifies the matched block or subject for each value.
Remarks
The three inputs must have equal length.
This overload requires a complete balanced design with exactly one observation for every treatment/block cell.
Exceptions
| Argument | values is null. -or- treatments is null. -or- blocks is null. |
| Dimension | The inputs do not all have the same length. |
| Argument | Fewer than three treatments were supplied. -or- Fewer than two blocks were supplied. |
| Invalid | The long-form data contains missing treatment or block levels. -or- The long-form data contains duplicate treatment/block cells. -or- The long-form data is missing one or more treatment/block cells. |