This function returns a primary layer and several auxiliary layers. The function can output a secondary (ARTFITMETADATA) result set with goodness-of-fit metadata, and a tertiary (ARTFITRESIDUALS) result set with residuals from the fitting operation.
The function returns a primary RETURNS TABLE, which has an ordered list of solved coefficients. If you specified MODEL_STATS (1), then a secondary layer has the model statistics. If you specified RESIDUALS (1), then a tertiary layer has residual statistics.
You display the primary layer with a SELECT statement. You display the secondary (ARTFITMETADATA) and tertiary (ARTFITRESIDUALS) layers with the TD_EXTRACT_RESULTS function.
Primary RETURNS TABLE Schema
Name | Data Type | Description |
---|---|---|
derived-series-identifier | Varies | The resultant series identifier inherited from the SERIES_ID. |
ROW_I | INTEGER | Index (position) of coefficient in formula. |
COEFF_NAME | VARCHAR(120) | Coefficient name. |
COEFF_VALUE | FLOAT | Calculated value of coefficient. |
STD_ERROR | FLOAT | [Appears only with COEF_STATS (1).] Standard error associated with calculated value of coefficient. |
TSTAT_VALUE | FLOAT | [Appears only with COEF_STATS (1).] The significance of coefficient relative to 0.t-statistic calculated for coefficient: coefficient_value / STD_ERROR (coefficient_value) |
TSTAT_PROB | FLOAT | [Appears only with COEF_STATS (1).] Probability associated with t-statistic calculated for input time series if coefficient is 0. More specifically, probability of getting |t| value as large as that calculated for input time series if coefficient is 0. |
SIGNIF_RATING | VARCHAR(40) | [Appears only with COEF_STATS (1).] The rating or confidence level range associated with the coefficient. |
CONF_INT_LOW | FLOAT | [Appears only with COEF_STATS (1).] Lowest value of coefficient, given confidence level specified in brackets, such as '[0.95]'. |
CONF_INT_HIGH | FLOAT | [Appears only with COEF_STATS (1).] Highest value of coefficient, given confidence level specified in brackets, such as '[0.95]'. |
Secondary RETURNS TABLE Schema (ARTFITMETADATA)
Name | Data Type | Description |
---|---|---|
derived-series-identifier | Varies | The resultant series identifier inherited from the SERIES_ID. |
ROW_I | INTEGER | The index for the result series. |
STD_ERROR2 | FLOAT | Standard error (standard deviation) associated with formula: 1 / (n - 2) * SUM (Yactual[i] - Ycalc[i])2 |
STD_EFFOR_DF | INTEGER | Degrees of freedom associated with standard error calculation. |
MULTIPLE_R_SQUARED | FLOAT | Fraction of variance. |
ADJUSTED_R_SQUARED | FLOAT | MULTIPLE_R_SQUARED value adjusted to penalize higher number of explanatory variables. |
FSTATISTIC | FLOAT | The F-statistic associated with a ratio of the two variances (explained / unexplained) . |
EXPLAINED_DF | INTEGER | Degrees of freedom associated with explained part of the F-statistic. |
UNEXPLAINED_DF | INTEGER | Degrees of freedom associated with unexplained part of the F-statistic. |
PROB_VALUE | FLOAT | Probability associated with the F-statistic. |
Tertiary RETURNS TABLE Schema (ARTFITRESIDUALS)
Name | Data Type | Description |
---|---|---|
derived-series-identifier | Varies | The resultant series identifier inherited from the SERIES_ID. |
ROW_I | INTEGER | Index associated with residual series. |
X1 | FLOAT | One field output per explanatory variable that appeared in the input source payload. Starting with X1, X2, X3, …, as needed. |
ACTUAL_VALUE | FLOAT | Actual value of response variable. |
CALC_VALUE | FLOAT | Value of response variable calculated using FORMULA. |
RESIDUAL | FLOAT | Difference between calculated and actual response variable values. |