CModel.SetConfidenceLevel

Sets the confidence level to use in confidence bounds calculations for published models. Returns a Boolean value; when true, indicates that a confidence level has been set.

Syntax
.SetConfidenceLevel(Level, Sides, UseConfidenceLevelInPercents, sError)

Parameters
Level
 * Required. Double. The confidence level, entered as a percentage.

Sides
 * Required. The sides setting (e.g., lower bound) for this confidence level. Can be any ConfBoundsSides constant.

UseConfidenceLevelInPercents
 * Required. Boolean. When true, the result is shown as a percentage; otherwise, it is shown as a decimal.

sError
 * Required. String. Returns a string for any error results.

Example
This example assumes that a published model with ID #47 exists in the repository.

VBA AModel cModel MyRepository.Project.SetCurrentProject(1) AModel = MyRepository.Model.GetModel(47) ErrorMsg String AModel.SetConfidenceLevel(0.9, ConfBoundsSides_TwoSidedBoth, False, ErrorMsg) ResultValue BoundsValues ResultValue = AModel.Bounds_Reliability(100)

VB.NET AModel cModel MyRepository.Project.SetCurrentProject(1) AModel = MyRepository.Model.GetModel(47) ErrorMsg String AModel.SetConfidenceLevel(0.9, ConfBoundsSides.TwoSidedBoth, False, ErrorMsg) ResultValue BoundsValues ResultValue = AModel.Bounds_Reliability(100)