GLM t-Statistic

Evaluate a GLM contrast using the full already-scaled coefficient covariance; no additional residual variance multiplier is applied.

Description

A fitted GLM contrast estimates a linear combination of coefficients.

A fitted GLM contrast estimates a linear combination of coefficients. Its t statistic divides that estimate by uncertainty derived from the fitted coefficient covariance.

The tool returns contrastEstimate (contrast estimate); contrastStandardError (contrast standard error); tStatistic (t statistic); degreesOfFreedom (degrees of freedom). Input measurements and model parameters are supplied by the caller; the tool computes the stated summary rather than acquiring those measurements.

When to use GLM t-Statistic

Use GLM t-Statistic when you already have coefficients, contrast, coefficientCovariance, residualDegreesOfFreedom and want contrastEstimate, contrastStandardError, tStatistic, degreesOfFreedom. This is useful for checking a supplied calculation, documenting a measurement convention, or comparing observations prepared on the same basis.

How to use GLM t-Statistic and understand its results

  1. Enter coefficients, contrast, coefficientCovariance, residualDegreesOfFreedom using the field table below. Match the units, ordering and data boundaries described in the calculation.
  2. Run the tool after checking the stated bounds and matching paired observations or categories. A malformed request gives a tool error rather than a usable measurement.
  3. Read contrastEstimate, contrastStandardError, tStatistic, degreesOfFreedom. Use the calculation and interpretation below to distinguish amounts, ratios, signs and decision flags where applicable.
  4. Review the supplied parameters and assumptions before using the result in a report or comparing it with another observation.
Input fieldMeaningValue type and boundsRequirement
coefficientsCoefficientslist of numberRequired
contrastContrastlist of numberRequired
coefficientCovarianceCoefficient covariancelist of list of numberRequired
residualDegreesOfFreedomResidual degrees of freedomintegerRequired

Require matching coefficients and contrast, a symmetric positive-definite covariance of at most 32 coefficients and positive integer residual degrees of freedom. Validate covariance by Cholesky factorization.

estimate = cᵀβ; SE = sqrt(cᵀCov(β)c); t = estimate/SE

The symbols refer to the supplied quantities or generated values described above; unit conversions and comparison boundaries follow the stated implementation.

json
{
  "input": {
    "coefficients": [
      2,
      3
    ],
    "contrast": [
      1,
      -1
    ],
    "coefficientCovariance": [
      [
        1,
        0
      ],
      [
        0,
        3
      ]
    ],
    "residualDegreesOfFreedom": 10
  },
  "output": {
    "contrastEstimate": -1,
    "contrastStandardError": 2,
    "tStatistic": -0.5,
    "degreesOfFreedom": 10
  }
}

Limitations and assumptions

The covariance must already include the appropriate fitted uncertainty. No model fitting, p value or multiple-comparison correction occurs.

Numerical inputs must be finite. The tool checks its declared input shape and calculation constraints; those checks do not verify the quality, calibration or representativeness of the supplied observations.

Alternative or Complementary methods

Permutation Threshold: Calculate upper-tail max-statistic permutation p-values with the plus-one correction and a separately labeled interpolated reference quantile; decisions use p-values, not an incompatible quantile cutoff. Crawford-Howell t: Compare one case with a small normative control sample using Crawford–Howell t and n−1 degrees of freedom; no p-value, tail choice or clinical interpretation is invented.

Methodological background: Least squares estimation.1

References

  1. Least squares estimation — NIST/SEMATECH

Similar or alternative tools

  • Permutation Threshold

    Calculate upper-tail max-statistic permutation p-values with the plus-one correction and a separately labeled interpolated reference quantile; decisions use p-values, not an incompatible quantile cutoff.

  • Crawford-Howell t

    Compare one case with a small normative control sample using Crawford–Howell t and n−1 degrees of freedom; no p-value, tail choice or clinical interpretation is invented.

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies