Skip to main page content
Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2016 Mar;4(6):111.
doi: 10.21037/atm.2016.02.15.

Model Building Strategy for Logistic Regression: Purposeful Selection

Affiliations
Free PMC article

Model Building Strategy for Logistic Regression: Purposeful Selection

Zhongheng Zhang. Ann Transl Med. .
Free PMC article

Abstract

Logistic regression is one of the most commonly used models to account for confounders in medical literature. The article introduces how to perform purposeful selection model building strategy with R. I stress on the use of likelihood ratio test to see whether deleting a variable will have significant impact on model fit. A deleted variable should also be checked for whether it is an important adjustment of remaining covariates. Interaction should be checked to disentangle complex relationship between covariates and their synergistic effect on response variable. Model should be checked for the goodness-of-fit (GOF). In other words, how the fitted model reflects the real data. Hosmer-Lemeshow GOF test is the most widely used for logistic regression model.

Keywords: Hosmer-Lemeshow; Logistic regression; R; interaction; linearity; purposeful selection.

Conflict of interest statement

Conflicts of Interest: The author has no conflicts of interest to declare.

Figures

None
Zhongheng Zhang, MMed.
Figure 1
Figure 1
Smoothed scatter plots showing the relationship between variable of interest with mortality outcome in logit scale.
Figure 2
Figure 2
Effect of hb on the probability of mortality, stratified by different age groups.
Figure 3
Figure 3
The plot of jittered outcome (alive=1; die=2) versus estimated probability of death from fitted model.
Figure 4
Figure 4
Histogram of estimated probability of death, stratified by observed outcome.
Figure 5
Figure 5
The receiver operating characteristic curve (ROC) reflecting the discrimination power of the model.

Similar articles

See all similar articles

Cited by 59 articles

See all "Cited by" articles
Feedback