Functional Linear Mixed Model for Curve Responses (Fast Univariate Inference)
Analyses curves measured repeatedly on the same subjects, such as daily activity profiles over several visits. A mixed model with a subject random intercept is fitted at every point of the curve, the coefficient estimates are smoothed along the curve, and pointwise intervals and simultaneous confidence bands are built from the joint covariance across the curve.
같은 대상자에게서 여러 번 측정한 곡선, 예를 들어 여러 방문의 하루 활동량 곡선을 분석합니다. 곡선의 각 점에서 대상자 무선절편 혼합모형을 적합하고, 계수 추정값을 곡선을 따라 평활한 뒤 곡선 전체의 결합 공분산으로 점별 구간과 동시 신뢰대를 만듭니다.
Wearable activity curves were recorded on several days per participant; at which times of day does activity differ by age?
참가자마다 여러 날 기록한 활동량 곡선에서 하루 중 어느 시간대에 활동량이 나이에 따라 다릅니까?
Smoothed coefficient functions with pointwise intervals and simultaneous bands, a global test per covariate, and pointwise variance components.
When to use Functional Linear Mixed Model for Curve Responses (Fast Univariate Inference)
- Each subject contributes several curves on a shared grid
- You want where along the curve a covariate matters
- Joint (simultaneous) inference along the curve is needed
When to use something else
- One curve per subject: use Function-on-Scalar Regression (Penalised B-Spline Coefficient Functions)
- Only the main modes of curve variation are wanted: use Functional Principal Component Analysis (FPCA)
Assumptions and requirements
- Shared grid of curve points
- Subjects independent with a random intercept at each point
- Smooth coefficient functions
What the analysis reports
- Coefficient functions
- Pointwise and simultaneous bands
- Global test per covariate
- Variance components along the curve
How to report it
The coefficient function of [covariate] peaked at [value] at [time] = [value]; its simultaneous 95% band excluded zero over [value]% of the grid.
Related methods
- Function-on-Scalar Regression (Penalised B-Spline Coefficient Functions)
- Functional Principal Component Analysis (FPCA)
- Hierarchical Linear Modeling (HLM)
How this method is validated
이 방법의 검증 근거
- R cross-check. 16 reported values agree with R (lme4::lmer) within a tolerance of 1e-5; the largest observed difference is 1e-7.
R 교차 검증. R(lme4::lmer) 대조: 보고 값 16개가 허용오차 1e-5 안에서 일치합니다(관측된 최대 차이 1e-7).
- Supporting tables vs R. Descriptive statistics and assumption checks shown with the results (40 values) agree with R (psych::describe, stats::quantile, stats::t.test, stats::cor.test) within 1e-6. This covers the supporting tables, not the main estimates.
보조 표 R 대조. R(psych::describe, stats::quantile, stats::t.test, stats::cor.test) 대조: 결과와 함께 나오는 기술통계·가정 점검 값 40개가 1e-6 안에서 일치합니다. 본 추정치가 아니라 보조 표에 대한 대조입니다.
- Independent computation. 2 reference tests compare the results with NumPy, SciPy, statsmodels and direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-5.
독립 계산. NumPy·SciPy·statsmodels·직접 계산(식·열거·모의실험) 대조 참조 시험 2건 통과(허용오차 1e-5).
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 Functional Linear Mixed Model for Curve Responses (Fast Univariate Inference) on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable, a time variable and a unit (entity) ID
- 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
- Results cross-checked against R
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.