← All posts

Simplifying Clinical Prediction Models: Correlation, Complexity & Fit in Stata (R², R square, and Predictor Parameters)

Clinical Epidemiology ResearchUniqcret doctor knowledgesData Analytics or StatisticsStata [Data Analytics]Systematic Reviews & Meta-Analyses
On this page

✨ Abstract

In the design of clinical prediction models—especially those involving continuous predictors—understanding the interplay between correlation among variables, the use of nonlinear terms, and model selection criteria is pivotal. This guide clarifies when and why we should simplify models, how predictor parameters affect statistical power, and how to decide whether adding complexity like quadratic terms is justified. Visual diagnostics and metrics like Adjusted R², AIC, and BIC are integrated into the analytic strategy.


🧩 Part 1: Why Predictor Correlation Matters

When multiple predictors like BMI, weight, and waist circumference are highly correlated, they may represent overlapping biological constructs. Including all of them:

📌 STATA Syntax to Check:

stata: corr age weight waist bmi

📉 High correlation (e.g., > 0.8) among predictors? → Consider dropping or combining.


📈 Part 2: What Are Predictor Parameters, and Why “More” Isn’t Always Better?

In a regression model like:

Fat % = β0 + β1 ⋅ Age + β2 ⋅ BMI + ⋯

📌 Only keep predictors that meaningfully contribute new information to the model.


🔁 Part 3: Linear vs. Quadratic – When to Go Nonlinear

Sometimes, predictor-outcome relationships are not straight lines. Quadratic terms (x²) allow the model to capture curved relationships (e.g., optimal health at middle weight, worse at extremes).

📊 STATA Visual Diagnostic:

stata tw (lowess dxa_totalpercentfat weight) /// (lfit dxa_totalpercentfat weight) /// (qfit dxa_totalpercentfat weight), /// title("DXA % Fat vs Weight: LOWESS vs Linear vs Quadratic")

Use this to visually decide if a quadratic term is justified:


🔬 Part 4: Evaluating Model Fit—Don’t Rely on R² Alone

❌ Raw R²

✅ Adjusted R²

✅ AIC (Akaike Information Criterion)

✅ BIC (Bayesian Information Criterion)

📌 STATA Model Comparison:

stata: regress dxa_totalpercentfat age weight estat ic // shows AIC, BIC regress dxa_totalpercentfat age weight c.weight#c.weight estat ic // compare again

📉 If AIC/BIC drops with quadratic term → consider keeping it.


🎯 Summary Chart

MetricMeaningRule
Variance explainedHigher = better (but misleading)
Adjusted R²R² adjusted for parametersHigher = better if added terms help
AICFit + complexity penaltyLower = better
BICFit + harsher complexity penaltyLower = better (esp. large n)


🔚 Conclusion

Building strong clinical prediction models means:

This approach ensures your model is clinically interpretable, statistically valid, and ready for external validation.


📉 The Problem

Even if R² increases, this model:

So yes: You are completely correct to say:

“We can use 1st-degree if the increase in R² doesn't justify the jump in predictor parameters (βs).”


✅ Rule of Thumb for Your Statement

If...Then...
R² ↑ but only a littleIgnore unless huge gain
Predictor parameters ↑↑⚠️ More power used, more noise
Constant (_cons) shifts big⚠️ Model becoming unstable
Clinical interpretability ↓⚠️ Simplicity is better

🔚 Conclusion

you can (and should) use 2nd-degree terms if:

0
Message for International and Thai ReadersUnderstanding My Medical Context in ThailandRead more →Message for International and Thai ReadersUnderstanding My Broader Content Beyond MedicineRead more →

Comments

No comments yet. Be the first to share your thoughts.

Sign in to comment