Description
score = weight*regressor*residual; squaredResidualContribution = weight*residual².
Instrumental-variable and moment calculations compare supplied regressors, instruments, residuals and first-stage quantities. A local moment or relevance statistic does not establish exclusion, exogeneity, identification or a complete estimator.
score = weight*regressor*residual; squaredResidualContribution = weight*residual².
When to use this tool
Use OLS One Observation Score Term when checking one supplied first-stage or moment contribution.
How to use the tool and how it works
- Enter regressor, residual, weight. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read score, squaredResidualContribution. Use the output convention below.
Require nonnegative weight. score = weight*regressor*residual; squaredResidualContribution = weight*residual².1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| regressor | Regressor | Required. Finite number. |
| residual | Residual | Required. Finite number. |
| weight | Weight | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| score | Score | Required. Finite number. |
| squaredResidualContribution | Squared Residual Contribution | Required. Finite number. |
{
"input": {
"regressor": 2,
"residual": 3,
"weight": 0.5
},
"output": {
"score": 3,
"squaredResidualContribution": 4.5
}
} Limitations and assumptions
- These are one observation's weighted terms, not complete score equations or a fitted OLS model. Weight meaning and model assumptions are supplied.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Fit an appropriate full model and examine identifying assumptions and diagnostics before interpreting an IV result.
References
Similar or alternative tools
- Residual Score Moment Term
Summarize one weighted residual-score moment and its denominator-aware mean.
- Iv One Instrument Residual Product
moment = sampleWeight*instrument*residual.