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
valuenumber: the value to format
Returns
text
FormatCriticalValue(number value)
This action formats specifically the critical value for a particular statistical test.
Parameters
valuenumber: the value to format
Returns
text
FormatDegreesOfFreedom(number value)
This action formats specifically the degrees of freedom for a particular statistical test.
Parameters
valuenumber: 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
valuenumber: 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
valuenumber: 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
valuenumber: the value to formatsignificantDigitsinteger
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
correlationSignificantDigitsinteger
SetCriticalValueSignificantDigits(integer criticalValueSignificantDigits)
The number of significant digits for test statistics (t-value, x2 value, f-value, etc)
Parameters
criticalValueSignificantDigitsinteger
SetDegreesOfFreedomSignificantDigits(integer degreesOfFreedomSignificantDigits)
The number of significant digits for degrees of freedom
Parameters
degreesOfFreedomSignificantDigitsinteger
SetProbabilitySignificantDigits(integer probabilitySignificantDigits)
The number of significant digits for p-values
Parameters
probabilitySignificantDigitsinteger
SetSignificantDigits(integer significantDigits)
The number of significant digits for other tests
Parameters
significantDigitsinteger
SetTestStatisticSignificantDigits(integer testStatisticSignificantDigits)
The number of significant digits for test statistics (t-value, x2 value, f-value, etc)
Parameters
testStatisticSignificantDigitsinteger