Penalized Spline Smoothing as a Mixed Model (REML)
A penalized spline writes a smooth curve as a polynomial plus many spline basis terms whose coefficients are treated as random effects with a common variance. REML then chooses the amount of smoothing automatically, other predictors enter linearly, and a cluster random intercept can be added. A restricted likelihood ratio test checks whether a straight line (or polynomial) is enough.
벌점 스플라인은 매끄러운 곡선을 다항식과 많은 스플라인 기저의 합으로 쓰고, 기저 계수를 공통 분산을 가진 무선효과로 다룹니다. REML이 매끄러움의 정도를 자동으로 정하며, 다른 예측변수는 선형으로 넣고 군집 무선 절편도 더할 수 있습니다. 제한 가능도비 검정으로 직선(또는 다항식)으로 충분한지 확인합니다.
What is the shape of the relationship between my outcome and one continuous predictor, and is it really non-linear?
결과와 연속형 예측변수 하나의 관계는 어떤 모양이며, 정말 비선형입니까?
The output gives the fitted curve with pointwise bands, the spline and error variances, the smoothing parameter and effective degrees of freedom, linear terms, and the restricted likelihood ratio test of linearity with an exact simulated null distribution when no cluster effect is present.
When to use Penalized Spline Smoothing as a Mixed Model (REML)
- You want a data-driven smooth curve for one predictor.
- You want to test linearity formally.
- You need a smooth term together with a cluster random intercept.
When to use something else
- You need several smooth terms or non-normal outcomes: use Generalized Additive Models (GAM)
- You prefer a fully Bayesian smoother: use Bayesian Penalized Spline Regression
Assumptions and requirements
- Gaussian errors with constant variance
- Knots cover the range of the predictor
What the analysis reports
- Fitted curve with pointwise bands
- Variance components, smoothing parameter and effective df
- RLRT of linearity with p-value
How to report it
A penalized spline fitted by REML (N = [value]) used [value] effective degrees of freedom; the restricted likelihood ratio test of linearity gave RLRT = [value], p = [value].
Related methods
- Generalized Additive Models (GAM)
- Bayesian Penalized Spline Regression
- Natural Cubic Spline Regression
How this method is validated
이 방법의 검증 근거
- Published value. A test reproduces published reference values within 1e-9.
출판값. 출판된 참조값 재현 시험 1건 통과(허용오차 1e-9).
- Independent computation. 2 reference tests compare the results with direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-3.
독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 2건 통과(허용오차 1e-3).
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 Penalized Spline Smoothing as a Mixed Model (REML) on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable 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
- Reproduces published reference values
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.