Skip to content

Main content

Two Stage Least Squares One Fitted Value Term Tool

Evaluate one supplied first-stage fitted value; this does not estimate coefficients or establish instrument validity.

Loading tool…

Description

fittedEndogenous = intercept+sum(instrument*coefficient).

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.

fittedEndogenous = intercept+sum(instrument*coefficient).

When to use this tool

Use Two Stage Least Squares One Fitted Value Term when checking one supplied first-stage or moment contribution.

How to use the tool and how it works

  1. Enter instruments, firstStageCoefficients, intercept. Keep parallel arrays aligned. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read fittedEndogenous. Use the output convention below.

Require equally long instruments and firstStageCoefficients. fittedEndogenous = intercept+sum(instrument*coefficient).1

Input fieldMeaning and unitsAccepted input
instrumentsInstrumentsRequired. Array of finite number; maximum items 256.
firstStageCoefficientsFirst Stage CoefficientsRequired. Array of finite number; maximum items 256.
interceptInterceptRequired. Finite number.
Output fieldInterpretationReturned shape
fittedEndogenousFitted EndogenousRequired. Finite number.
json
{
  "input": {
    "instruments": [
      2,
      3
    ],
    "firstStageCoefficients": [
      0.5,
      2
    ],
    "intercept": 1
  },
  "output": {
    "fittedEndogenous": 8
  }
}

Limitations and assumptions

  • This is one first-stage fitted row, not a fitted model or complete two-stage least-squares estimator. Coefficients, instruments and their validity 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

  1. Calculation and input contract: econometrics/two-stage-least-squares-one-fitted-value-term — tool.io

Similar or alternative tools