Odds Ratio and Confidence Intervals - Teradata Vantage

Machine Learning Engine Analytic Function Reference

Product
Teradata Vantage
Release Number
8.10
1.1
Published
October 2019
Language
English (United States)
Last Update
2019-12-31
dita:mapPath
ima1540829771750.ditamap
dita:ditavalPath
jsj1481748799576.ditaval
dita:id
B700-4003
lifecycle
previous
Product Category
Teradata Vantage™

You can exponentiate the coefficients (the estimate column in the output table coefficient estimates) and interpret them as odds ratios (ORs). To perform this type of computation, you can run the following SQL queries on the output of the GLM function.

-- odds ratios only
SELECT predictor, category,
  EXP(estimate) AS odds_ratio
  FROM glm_output;
-- odds ratios and 95% CI
SELECT predictor, category,
  EXP(estimate) AS odds_ratio,
  EXP(estimate - 1.96 * std_err) AS lower_bound,
  EXP(estimate + 1.96 * std_err) AS upper_bound
FROM glm_output;