StatisticsFormatting

Package: Libraries.Compute.Statistics.Reporting · Inherits from: Libraries.Language.Object

This class handles some basic formatting operations for statistical reporting. By default It uses the conventions from the American Psychological Association. See their Statistics guide for more information: https://apastyle.apa.org/instructional-aids/numbers-statistics-guide.pdf

Variables

  • number PRECISION_LIMIT

Actions

FormatCorrelation(number value)

This action formats specifically the correlation for a particular statistical test. This applies for statistics that CANNOT be greater than 1. Remove leading 0.

Parameters

  • value number: the value to format

Returns

text

FormatCriticalValue(number value)

This action formats specifically the critical value for a particular statistical test.

Parameters

  • value number: the value to format

Returns

text

FormatDegreesOfFreedom(number value)

This action formats specifically the degrees of freedom for a particular statistical test.

Parameters

  • value number: the value to format

Returns

text

FormatProbabilityValue(number value)

This action formats specifically the p-value for a particular statistical test. This applies for statistics that CANNOT be greater than 1. Remove leading 0.

Parameters

  • value number: the p-value to format

Returns

text

FormatTestStatistic(number value)

This action formats specifically the test statistic (t-value, x2-value) for a particular statistical test. This applies for statistics that CAN be greater than 1. Keep the leading 0.

Parameters

  • value number: the value to format

Returns

text

FormatWithoutLeadingZero(number value, integer significantDigits)

This action formats any value that require the leading 0 to be drop but need more or less decimal places than correlation and are not formatted like probability. This applies for statistics that CANNOT be greater than 1. Remove leading 0.

Parameters

  • value number: the value to format
  • significantDigits integer

Returns

text

GetCorrelationSignificantDigits()

The number of significant digits for correlations

Returns

integer

GetCriticalValueSignificantDigits()

The number of significant digits for test statistics (t-value, x2 value, f-value, etc)

Returns

integer

GetDegreesOfFreedomSignificantDigits()

The number of significant digits for degrees of freedom

Returns

integer

GetProbabilitySignificantDigits()

The number of significant digits for p-values

Returns

integer

GetSignificantDigits()

The number of significant digits for other tests

Returns

integer

GetTestStatisticSignificantDigits()

The number of significant digits for test statistics (t-value, x2 value, f-value, etc)

Returns

integer

SetCorrelationSignificantDigits(integer correlationSignificantDigits)

The number of significant digits for correlations

Parameters

  • correlationSignificantDigits integer

SetCriticalValueSignificantDigits(integer criticalValueSignificantDigits)

The number of significant digits for test statistics (t-value, x2 value, f-value, etc)

Parameters

  • criticalValueSignificantDigits integer

SetDegreesOfFreedomSignificantDigits(integer degreesOfFreedomSignificantDigits)

The number of significant digits for degrees of freedom

Parameters

  • degreesOfFreedomSignificantDigits integer

SetProbabilitySignificantDigits(integer probabilitySignificantDigits)

The number of significant digits for p-values

Parameters

  • probabilitySignificantDigits integer

SetSignificantDigits(integer significantDigits)

The number of significant digits for other tests

Parameters

  • significantDigits integer

SetTestStatisticSignificantDigits(integer testStatisticSignificantDigits)

The number of significant digits for test statistics (t-value, x2 value, f-value, etc)

Parameters

  • testStatisticSignificantDigits integer

Inherited Actions

3 actions from Libraries.Language.Object