The Data Analysis tool imports data directly into Crystal Ball forecasts for further analysis. This call runs the Data Analysis tool and displays results without using a dialog.
Note: | Before calling CB.DataAnalysisND, reset the Crystal Ball simulation. |
Table 43. CB.DataAnalysisND Index Parameter — Required, Integer
Selects the numeric portion of the data to be imported. The range can either be specified as a separate line preceding the CB.DataAnalysisND call, such as [A1:C100].Select, or it can be the Value parameter, specified as "A1:C100" or similar. | |||
Works with Value to specify whether data is in rows or columns: | |||
Uses a boolean value for the Value parameter to include column header text in the selection; True = include the top row of text | |||
Uses a boolean value for the Value parameter to include row label text in the selection; True = include the first column of text | |||
Sets the selected range of values as forecast LSLs (lower specification limit) for process capability analysis. The range can either be specified as a separate line preceding the CB.DataAnalysisND call, such as [A1:C10].Select, or it can be the Value parameter, specified as "A1:C10" or similar. | |||
Sets the selected range of values as forecast USLs (upper specification limit) for process capability analysis. See cbDataAnalysisSelectLSL for selection examples. | |||
Sets the selected range of values as forecast Targets (target values) for process capability analysis. See cbDataAnalysisSelectLSL for selection examples. | |||
Uses a boolean value for the Value parameter to indicate whether to open forecast charts automatically when the data analysis runs; True = automatically open charts. | |||
If charts are shown, takes cbChtChartType constants from CB.ChartPrefsND as the Value parameter to determine which chart view appears. See Table 24 for constants. | |||
Uses a boolean value for the Value parameter to indicate whether forecast charts should be fitted to a distribution; True = fit to distributions. | |||
If cbDataAnalysisFitToDistribution is True, works with Value to specify a ranking method for distribution fitting. See Table 78 for constants. | |||
Uses a boolean value for the Value parameter to indicate whether rank correlations between forecast charts should be displayed in a matrix; True = generate matrix. | |||
Uses a boolean value for the Value parameter to indicate whether a simulation is run on all open workbooks at the same time the selected data is analyzed. In this case, forecast charts for all opened models appear with those generated from the data selected for analysis. True = run the simulation on all open workbooks; this setting can be used for validating models. | |||
Resets all session variables related to the CB.DataAnalysisND Developer Kit call including the input data series and the LSL, USL, and Target capability values. |
Table 44. CB.DataAnalysisND Value Parameter — Optional, Variant
Indicates whether to include column header text in the selection; True = include the top row of text | ||||
Indicates whether to include row label text in the selection; True = include the first column of text | ||||
Sets the selected range of values as forecast LSLs (lower specification limit) for process capability analysis | ||||
Sets the selected range of values as forecast USLs (upper specification limit) for process capability analysis | ||||
Sets the selected range of values as forecast Targets (target values) for process capability analysis | ||||
Indicates whether to open forecast charts automatically when the data analysis runs; True = automatically open charts | ||||
Constants (Table 24) | See Table 24 | Uses cbChtChartType constants from CB.ChartPrefsND to determine which chart view appears. See Table 24 for constants. The following views are allowed: frequency, cumulative frequency, reverse cumulative frequency, capability metrics, statistics, percentiles, and goodness of fit. | ||
Indicates whether forecast charts should be fitted to a distribution; True = fit to distributions | ||||
Constants (Table 78) | See Table 78 | Specifies a ranking method for distribution fitting. See Table 78 for constants | ||
Indicates whether rank correlations between forecast charts should be displayed in a matrix; True = generate matrix | ||||
Indicates whether a simulation is run on all open workbooks at the same time the selected data is analyzed; True = run the simulation on all open workbooks |