Log-Ratio Regression for Compositional Outcomes
Log-ratio regression models a composition, such as time-use shares or proportions of parts that add up to a whole, as the outcome of predictors. The composition is converted to isometric log-ratio coordinates, a multivariate linear model is fitted to them, and the coefficients are expressed on the centred log-ratio scale, where each coefficient tells how a predictor changes one part relative to the geometric mean of all parts.
로그비 회귀는 시간 사용 비율처럼 합이 전체를 이루는 부분들의 구성을 결과변수로 삼아 예측변수의 효과를 봅니다. 구성을 등거리 로그비 좌표로 바꾼 뒤 다변량 선형모형을 적합하고, 계수를 중심 로그비 척도로 나타냅니다. 각 계수는 예측변수가 한 부분을 모든 부분의 기하평균에 비해 얼마나 바꾸는지를 뜻합니다.
How do predictors change the relative make-up of a composition?
예측변수가 구성 비율의 상대적 구성을 어떻게 바꿉니까?
You get centred log-ratio coefficients for every part and predictor with standard errors and confidence intervals, multivariate Wilks and Pillai tests for each predictor and for all predictors together, the share of log-ratio variance explained and the fitted composition at average predictor values.
When to use Log-Ratio Regression for Compositional Outcomes
- The outcome is a set of non-negative parts whose total is not of interest, such as shares, percentages or budgets.
- You want effects on relative amounts that do not depend on which part is the reference.
- Predictors are numeric or categorical.
When to use something else
- You want a likelihood model for proportions that keeps the composition on its own scale: use Dirichlet Regression for Compositional Outcomes
- You only want to describe or transform compositions: use Compositional Data Analysis (Log-Ratio Methods)
- The parts are counts with many zeros, as in microbiome data: use Compositional Differential Abundance (CLR, ANCOM-BC)
Assumptions and requirements
- Log-ratio coordinates approximately multivariate normal with constant covariance
- Independent rows
- Few zeros (zeros are replaced multiplicatively)
What the analysis reports
- clr coefficients with standard errors, t, p and 95% confidence intervals
- Wilks' Lambda and Pillai's trace with F tests per predictor
- Overall test of all predictors
- Share of total log-ratio variance explained
- Fitted composition at the predictor means
How to report it
An ilr regression showed that the predictor changed the composition, Wilks' Lambda = [value], F([value], [value]) = [value], p = [value]; one unit more raised the first part relative to the geometric mean by a factor of [value].
Related methods
- Dirichlet Regression for Compositional Outcomes
- Compositional Data Analysis (Log-Ratio Methods)
- Aitchison Distance Between Compositions
- MANOVA
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with statsmodels at a stated tolerance of 1e-7.
독립 계산. statsmodels 대조 참조 시험 1건 통과(허용오차 1e-7).
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Log-Ratio Regression for Compositional Outcomes on Quorant
- Data you need
- a table (CSV or Excel) with item columns (e.g. questionnaire items) and predictor (feature) columns
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.