Contents Previous Next


GetPValueInfo Method (BDKResult Object)

Description

Returns p-value information about the fit. Since this information can, in general, only be approximately calculated, the p-value is often reported as a range of values.

Syntax

object.GetPValueInfo(whichStatistic As BDKFitStatistic, isRangeOfValues As Boolean, pValue1 as Double, pValue2 as Double)

Arguments

whichStatistic (Required BDKFitStatistic) – which fit statistic to retrieve information about. Can be one of the following values:

isRangeOfValues (Required Boolean) – this argument returns whether the p-value could be calculated exactly, or if only a bounded range of values could be determined. If pValueIsRange is returned as TRUE, the p-value is given as a range, and both pValue and pValue2 are returned, where pValue is the lower end of the range and pValue2 is the upper end of the range. If pValueIsRange is FALSE, the pValue could be calculated exactly, and only the value returned in pValue is used.

pValue (Required Double) – the returned pValue. See the isRangeOfValues argument description for more information.

pValue2 (Required Double) – the upper boundary of the pValue range. See the isRangeOfValues argument description for more information.

Return Value

None.

Example

Dim pValueIsRange%
Dim pValue#, pValue2#
fitResultObj.GetPValueInfo(BDKKSStatistic, pValueIsRange, pValue, pValue2);
If (pValueIsRange = 0) then
    MsgBox "p = " & pValue
Else
    MsgBox pValue & " <= p <= " & pValue2
End If