statregval2#

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

Computes a constant value defined as the statistics from a StatReg linear regression given a specified coefficient. The options are the estimated coefficient, sum of squares for the variable, partial sum of squares of the variable, and standard error for the coefficient

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=Coefficient 1=SS Variable 2=Partial SS Variable 3=Coeficient stderr.

var_select:

Select the variable for which to return the statistic. 0=x0, 1=x1, 2=x2 3=x3, 4=x4.

output_varname:

The name of the newly created variable

Returns:

New ENS_VAR instance or None

Note:

See StatRegVal2() for function details.