STATBEAN or JavaBeans examples are included throughout this section. In addition, sample java files are distributed with the system which implement each STATBEAN as a simple Java application. The data-analysis add-in sample files have names such as ControlChartsExample.java, which creates the following output:
Some special features and other items of note are:
- Each STATBEANS lists various Read/Write Properties. The properties may be read or set by capitalizing the first letter of the property and adding one of the following suffixes to the front:
"set" to read the value of any property, as in simpleRegression1.setModelType("Exponential").
"get" to read the value of any property except a boolean, as in simpleRegression1.getSlope().
"is" to read the value of a boolean, as in simpleRegression1.isIncludeConstant().
The Other Public Methods are called exactly as listed.
- Calculation STATBEANS save intermediate results in the Output Variables listed. The calculation StatBean then serves as a datasource to other beans, adding these output variables to the variables of its input datasource. A good example of this feature is contained in the file XYPlotExample2.java, which uses the XYPlot STATBEAN to plot residuals from a simple regression.
- Most Calculation STATBEANS require the input of column names to specify the data to be analyzed. In place of a simple name such as "weight", you may specify instead a transformation of a column by entering a string such as "LOG(weight)". The transformations currently supported are: natural logarithm - LOG(weight) square root - SQRT(weight) cube root - CBRT(weight) absolute value - ABS(weight) exponential function - EXP(weight) raise to a power - weight^1.5 Full algebraic parsing will be added at some point in the future.
Trademark and Copyright Notification
STATBEANS® is a trademark of Statpoint Technologies, Inc. All rights reserved. All STATBEANS® code and documentation is copyright 2015 by Statpoint Technologies, Inc., and is not to be redistributed without express written permission.