statregval1#

ens_calculator.statregval1(source_parts: List[ENS_PART] | List[int] | List[str] | ENS_PART | int | str, regression_var: ENS_VAR | str | int | float, which_stat: int = 0, output_varname: str | None = None) ENS_VAR#

Computes a constant value defined as the statistics from a StatReg linear regression. The options are sum of squares error, sum of squares modal, and R-squared

Args:
source_parts:

Any part(s) or a part number.

regression_var:

Select the constant output variable from a StatReg*() function.

which_stat:

Enter the number of the statistic to output. 0=SS Error 1=SS Total 2=SS Model 3=R squared.

output_varname:

The name of the newly created variable

Returns:

New ENS_VAR instance or None

Note:

See StatRegVal1() for function details.