cModel.Bounds Parameters
Jump to navigation
Jump to search
Member of: SynthesisAPI9.cModel
Calculates the confidence bounds on the parameter estimates. Returns a ParamBoundsValues object array that contains contains the values.
You must first use the SetConfidenceLevel method to specify the confidence bound settings, and then use this method to perform the calculations.
Syntax
.Bounds_Parameters()
Example
VBA ... 'Add code to get an existing model or create a new one. Dim AModel As New cModel ... 'Set the confidence level to 90% two-sided bounds. Dim ErrorMsg As String Call AModel.SetConfidenceLevel(0.9, ConfBoundsSides_TwoSidedBoth, False, ErrorMsg) 'Calculate the bounds on the model's parameters. Dim ResultValue() As ParamBoundsValues ResultValue = AModel.Bounds_Parameters 'Output sample: Display the bounds on the first parameter. Dim ParamName As String Dim ParamUpperVal As Double Dim ParamLowerVal As Double ParamName = ResultValue(0).ParamName ParamUpperVal = ResultValue(0).Upper ParamLowerVal = ResultValue(0).Lower MsgBox (ParamName & ": " & ParamUpperVal & " and " & ParamLowerVal)
VB.NET ... 'Add code to get an existing model or create a new one. Dim AModel As New cModel ... 'Set the confidence level to 90% two-sided bounds. Dim ErrorMsg As String AModel.SetConfidenceLevel(0.9, ConfBoundsSides.TwoSidedBoth, False, ErrorMsg) 'Calculate the bounds on the model's parameters. Dim ResultValue() As ParamBoundsValues ResultValue = AModel.Bounds_Parameters 'Output sample: Display the bounds on the first parameter. Dim ParamName As String Dim ParamUpperVal As Double Dim ParamLowerVal As Double ParamName = ResultValue(0).ParamName ParamUpperVal = ResultValue(0).Upper ParamLowerVal = ResultValue(0).Lower MsgBox (ParamName & ": " & ParamUpperVal & " and " & ParamLowerVal)