Generalized Least Squares with Variance and Correlation Structures
Generalized least squares with variance and correlation structures fits a linear model whose error variance follows a modelled function and whose errors are correlated within groups, estimated by REML or ML.
분산·상관 구조가 있는 일반화 최소제곱은 오차 분산을 모형화한 함수로 두고 집단 안의 오차 상관을 허용한 선형모형을 REML 이나 ML 로 추정하는 방법입니다.
My residual spread grows with a covariate and repeated measurements on the same unit are correlated; how do I fit a regression that models both?
잔차의 퍼짐이 공변량에 따라 커지고 같은 개체의 반복 측정이 서로 상관된다면 둘 다 반영한 회귀는 어떻게 맞추나요?
This GLS model writes the error covariance as σ² times a matrix built from a variance function, such as a power or exponential of a covariate or a separate standard deviation per stratum, and a within-group correlation structure such as AR(1) or compound symmetry. The structure parameters and regression coefficients are estimated by restricted or full maximum likelihood, and likelihood-ratio tests and AIC compare the structure against independent homoscedastic errors.
When to use Generalized Least Squares with Variance and Correlation Structures
- Residual variance changes with a covariate or differs between groups
- Repeated or clustered observations are correlated within units
- You want population-average coefficients without random effects
When to use something else
- You need subject-specific effects or random slopes: use a Linear Mixed Model
- There is one long time series with AR errors only: use Regression with Autocorrelated Errors (Prais-Winsten / Cochrane-Orcutt)
Assumptions and requirements
- Errors are normally distributed given the covariance structure
- The variance covariate and grouping are correctly specified; AR(1) uses order within group, not time gaps
- REML likelihoods are compared only between models with the same fixed effects
What the analysis reports
- Coefficients with standard errors, t tests and confidence intervals
- Variance-function parameters (δ or standard-deviation ratios) and correlation parameter (φ or ρ)
- Log-likelihood, AIC and BIC for the requested and simpler structures
- Likelihood-ratio tests against independent homoscedastic errors and residual normality
How to report it
A GLS model of [outcome] (n = [n], REML) with a [variance] variance function and [correlation] within-group correlation (φ = [value]) gave AIC = [value]; the likelihood-ratio test against independent homoscedastic errors gave χ²([df]) = [value], p = [value].
Common variants
자주 쓰는 설정
The same analysis with settings already chosen. Each runs Generalized Least Squares with Variance and Correlation Structures itself, at the same price.
- Exponential spatial covariance SP(EXP) — correlation set to “exp”
- Gaussian spatial covariance SP(GAU) — correlation set to “gau”
- Spherical spatial covariance SP(SPH) — correlation set to “sph”
- Power spatial covariance SP(POW) — correlation set to “pow”
- Linear spatial covariance SP(LIN) — correlation set to “lin”
- Matern spatial covariance SP(MATERN) — correlation set to “matern”
- Geometric anisotropic exponential covariance (EXPGA) — correlation set to “expga”
- Anisotropic power covariance (POWA) — correlation set to “powa”
- Spatial covariance with nugget (LOCAL) — correlation set to “exp”; nugget set to “on”
- Group-specific correlation parameters (GROUP=) — corr by set to “”
Related methods
- Weighted Least Squares Regression
- Regression with Autocorrelated Errors (Prais-Winsten / Cochrane-Orcutt)
- Mixed Model for Repeated Measures (MMRM)
How this method is validated
이 방법의 검증 근거
- Automated tests. Checked by automated run tests; no external reference comparison is recorded yet.
자동 시험. 자동 실행 시험을 거칩니다. 외부 참조값과 대조한 기록은 아직 없습니다.
Run Generalized Least Squares with Variance and Correlation Structures on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and predictor (feature) columns
- Price
- 600 credits for one analysis up to 10,000 rows (complexity level 4); larger or wider data costs more. Optional methodologist review: 2400 credits.
- Checking
- Automated run tests; no external reference comparison yet
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.