# Binary Response Analysis Using Logistic Regression in Dentistry

Authors: Natchalee Srimaneekarn; Anthony Hayter; Wei Liu; Chanita Tantipoj
Journal: International Journal of Dentistry
 (2022)

---

## Abstract

Multivariate analysis with binary response is extensively utilized in dental research due to variations in dichotomous outcomes. One of the analyses for binary response variable is binary logistic regression, which explores the associated factors and predicts the response probability of the binary variable. This article aims to explain the statistical concepts of binary logistic regression analysis applicable to the field of dental research, including model fitting, goodness of fit test, and model validation. Moreover, interpretation of the model and logistic regression are also discussed with relevant examples. Practical guidance is also provided for dentists and dental researchers to enhance their basic understanding of binary logistic regression analysis.


---

## Body

## 1. Introduction

Multivariate analysis is extensively used in multidisciplinary research fields, given its ability to explore multiple independent variables [1]. Research on dental science usually investigates the effect of multiple factors associated with various events, such as factors related to a disease or to the success or failure of an intervention. In dentistry, binary response variable is often recorded as a dependent variable, e.g., success-failure of a treatment, presence-absence of a disease, sound-decayed tooth, positive-negative staining, or other yes-no outcomes. Numerous studies also aim to inspect the relationship between a binary response variable and several independent variables.Binary logistic regression is an existing causes and effects analysis for such binary response variable as the presence or absence of disease in epidemiology study, positive or negative in laboratory research, or even in the sex prediction in forensic identification of anonymous bodies. It is commonly used to investigate an existing problem by exploring associated factors and predicting the response probability for a new case [2]. Many aspects of the logistic regression differ from those of linear regression, although most researchers are familiar with the latter. Hence, understanding the application and interpretation of binary response analysis is of utmost importance to researchers. The aim of this paper is to explain important concepts of logistic regression with relevant examples, including model fitting, goodness of fit test, validation of the fitted model, and interpretation of the fitted model.


## 2. Linear Regression and Logistic Regression

Regression analysis, a common statistical method employed in dental research, is used to investigate the relationship between one response variable and one or more independent variables. Linear regression and logistic regression differ on the response variable: linear regression for continuous response variable and logistic regression for binary response variable as shown in Table1. Linear regression models a continuous response variable Y by a linear combination of independent variables Xs, as in equation (1) [3]:(1)Y=β0+β1X1+β2X2+β3X3+⋯,where βi is a regression coefficient for each Xi that can be continuous, discrete, or categorical variables, e.g., to determine the factors (independent variables, Xs) associated with salivary glucose levels (a continuous response variable, Y) [4]. The response variable for logistic regression is a binary response variable (Y=1 or 0), e.g., success, presence, disease, or positive [5].Table 1
Comparison between linear regression and logistic regression.
RegressionResponse variable (Y)ExamplesLinear regressionContinuousScore, saliva flow rate, surface hardness, distanceLogistic regressionBinarySuccess-failure, presence-absence, sound-decayed tooth, positive-negative, yes-noLogistic regression model is a construction of the relationship betweenp, the probability of an event of interest, PY=1, and a linear combination of independent variables Xs with the logit link function. The most commonly used link functions are logit, probit, and complementary log-log [6]. The logit link function is the natural log of the odds ratio—the ratio between the probability of occurrence of an event of interest (if occurred p, and if not occurred 1−p) as shown in equation (2) [7]:(2)logitp=lnp1−p=β0+β1X1+β2X2+β3X3+⋯.The probit link function is the inverse normal cumulative distribution function. The complementary log-log is the natural log function in terms oflog−log1−p [8]. However, the logit link function is most commonly utilized because it is less complicated and easy to interpret [6]. Therefore, in this paper, only the logit link function of logistic regression will be focused. Figure 1 shows the regression plots from the continuous response linear regression analysis and binary response logistic regression analysis with one continuous independent variable. The plot from the linear regression analysis is a straight line, whereas for logistic regression, it is a S-curve. The differences are due to the logit link function in logistic regression.Figure 1
(a) Regression plots from linear regression analysis (left) and (b) logistic regression analysis (right) with one continuous independent variable.


## 3. Sample Size for Logistic Regression

Peduzzi et al. (1996), in a simulation study for sample size in logistic regression analysis, suggested that the number of interested events of a response variable should be at least 10 cases or events per one independent variable [9]. For example, a study on a presenting oral microbe and 5 related factors need 50 cases of the presenting oral microbe. However, if the sample size is limited, Vittinghoff et al. (2007) stated that 5–9 events per variable with bootstrap resampling validation was acceptable [10]. Likewise, a study of an oral lesion and 5 related factors needs 25–45 cases of the oral lesion for satisfactory analysis with bootstrap validation.


## 4. Fitting Logistic Regression Model

Unlike discriminant analysis, logistic regression does not require the assumption of multivariate normal distribution or any distributional assumption on theXs [11]. The significance of independent variables in the model is determined by the Wald test, which is a proportion between the estimating parameter βi to its standard error that is assumed to follow a standard normal distribution [12]. Several statistical software programs: SPSS, R, STATA, SAS, etc. present the square of the proportion, which follows a chi-square distribution with 1 degree of freedom [13]. The null hypothesis for both statistical tests is βi=0. The independent variables with a p value greater than the significance level is removed from the model. An example of data from a study of risk factors associated with hyperglycemia using binary logistic regression analysis, after removal of a few nonsignificant variables, is presented in Table 2 and Figure 2 [14]. The final fitted model can be written as(3)lnp1−p=−3.729+0.371∗Age+0.961∗BMI+0.558∗HDM+0.250∗PD,where p is the probability that the patient would have hyperglycemia.Table 2
Results from a study of risk factors associated with hyperglycemia using binary logistic regression analysis [14].
Independent VariablesBaSEbWaldp valueORc95% CI of ORcConstant−3.7290.44171.646<0.0010.024Age (10 years)0.3710.07127.484<0.0011.4491.261–1.665Body Mass index (BMI >23 kg/m2)0.9610.20422.176<0.0012.6141.752–3.900Family history of DM (HDM)0.5580.17510.1200.0011.7471.239–2.463Periodontal status (PD)0.2500.1214.2610.0391.2841.013–1.629aB, regression coefficient βi; bSE, standard error; c95% CI of OR, 95% confidence interval of odds ratio expβi.Figure 2
Demographic data of significant variables; age, BMI, family history of DM, and periodontal status, from a study of risk factors associated with hyperglycemia using binary logistic regression analysis [14].


## 5. Interpretation of Coefficients

Interpretation of the logistic regression model is based on the exponential function. The exponential function of the logistic regression coefficient is the odds ratio. If the independent variable,Xi, is increased by 1 unit, the odds of response would be increased by eβi, when the other variables are fixed [15]. The exponential function was added to equation (3) and changed into the odds ratio, p/1−p, as(4)p1−p=e−3.729∗e0.371∗Age∗e0.961∗BMI∗e0.558∗HDM∗e0.250∗PD.The clinical implication of this mathematical equation can be illustrated as the adjusted odds ratio (OR) in Table1. If the age of the patient is increased by 10 years (1 unit), the odds of hyperglycemia would be increased by e0.371 or 1.449, when the other X variables were fixed. The coefficient of the categorical variable can be interpreted in a similar way. If the patient has a family history of diabetes mellitus (HDM), the odds of developing hyperglycemia would be increased e0.558 or 1.747 times that of those without HDM, when the other variables were fixed. Those odds are adjusted by the other variables in the equation and are reported as the adjusted odds ratios [16–18]. The confidence intervals of the regression coefficients are also reported. In some statistical packages: SPSS, R, STATA, SAS, etc., exponential function was taken to those intervals. Then, the confidence interval of the odds ratio was reported instead of confidence interval of the coefficients, as in Table 2 [19].However, some studies aim to estimate the probability of an event of interest. The odds in equation (4) can be simplified to be the probability equation, as in equation (5):(5)p=exp−3.729+0.371∗Age+0.961∗BMI+0.558∗HDM+0.250∗PD1+exp−3.729+0.371∗Age+0.961∗BMI+0.558∗HDM+0.250∗PD,where exp⋅ is an exponential function, and p is an estimated probability of having hyperglycemia, as an interested event occurrence, which was the purpose of that study.The second example in Table3 aimed to use logistic regression only for prediction. The study of sex determination using tooth widths established a logistic regression model for predicting the probability of an anonymous dead body for being male, using lower-left canine (LLC) and upper intercanine width (UIW) as independent variables [20]. Table 3 presents the result from logistic regression analysis which can be written as(6)lnpmale1−pmale=−20.089+1.592∗LLC+0.247∗UIW.Table 3
Results from a sex determination study by tooth widths using binary logistic regression analysis [20].
Independent variablesBap valueOdds ratio95% CI of ORbConstant−20.089<0.001Lower-left canine (LLC)1.592<0.0014.9122.315–10.422Upper intercanine width (UIW)0.2470.0031.2801.087–1.507aB, regression coefficient βi; b95% CI of OR, 95% confidence interval of odds ratio expβi.Equation (6) is for sex determination of an unknown dead body. Addition of LLC and UIW into the equation results in a probability of being male, pmale, which can be used for sex identification.Another example in Table4 aimed to use logistic regression only for investigating the risk factors. The study of the prevalence and risk factors of high-level oral microbe used logistic regression to investigate the risk factors [21]. Table 4 presents the result from the analysis which comprised of the statistically significant risk factors associated with the high-level oral microbe. This example presents the odds ratio of three-level categorical variables, i.e., education level. If there are more than two levels of variables, the table should present all levels to show the reference level as non/primary education level in Table 4. Then, the odds ratio of secondary and higher education level, 5.26 and 1.97, respectively, can be compared to the reference level or non/primary education level in this study. For example, if the participant’s education is secondary level, the risk of having high-level oral microbes is 5.26 times compared to the one whose education is non/primary level with 95% confidence interval (range 1.41 to 19.67). However, this study only aimed to investigate the risk factors. Since the adjusted odds ratio was adequate for interpretation, the prediction equation was not necessary for this study.Table 4
Results from a study of prevalence and risk factors of high-level oral microbe using binary logistic regression analysis [21].
Independent variablesp valueOdds ratio95% CI of ORaSite: Rural0.00214.732.65–82.00Hyposalivation<0.00123.004.15–127.36Number of tooth loss0.0411.081.003–1.17Education levelNon/primaryRef1-Secondary0.0145.261.41–19.67Higher0.3391.970.49–7.86a95% CI of OR, 95% confidence interval of odds ratio.


## 6. Goodness of Fit Test

When the final model is constructed, it should be examined in terms of the goodness of fit to describe how well the model fits the data. TheR2 value of logistic regression is usually low, which is different from the R2 of linear regression. Hosmer et al. (2013) recommended performing the goodness of fit test instead of reporting the R2 [12]. The Hosmer–Lemeshow goodness of fit statistic is calculated by the grouping method on percentiles of the estimated probability, which follows chi-square distribution. The null hypothesis of this test will verify the fitting of the model. If the calculated p value from the test is less than the level of significance, the model can be assumed to be a poor fit [12, 22]. For example, the fitted model in Table 2 had been tested by the Hosmer–Lemeshow test, with a p value = 0.210. This indicated that the model fitted the data well. However, Hosmer et al. (1997 and 2002) found that none of the goodness of fit tests has high accuracy when the sample size is small (n = 100). Therefore, they recommended a sample size of 500 for the goodness of fit test [23, 24].


## 7. Model Validation

Validation of the fitted model is to confirm the inference accuracy [25]. Before the model fitting process, all data are split into two sets. The first is a validation set (or testing set) and is taken randomly from about 15 to 40% of all data [26, 27]. The rest of the data is called the training set (or modelling set). It is used for the model establishment with logistic regression analysis, which, in turn, will establish the prediction equation, e.g., as in equation (3). Then, the data from the validation set are applied to the previously fitted model from the training data [3, 26]. Model validation is performed by comparing the results from the fitted model and realistic response [15, 28]. The prediction error can be calculated using the incorrect results from the validation set as percent error. For example, if the results from the validation set of 50 samples contain 10 incorrect predictions, the prediction error will be 20% (10/50).


## 8. Various Applications in Dentistry

Superior to the univariable analysis, multiple logistic regression presents the effect of confounding factors and/or other variables with adjusted odds ratios to confirm the effect of interested variables when other factors are involved. Binary logistic regression can be used not only in the investigation of associated factors, as previously described in the example for evaluating the risk factors associated with hyperglycemia but also in many other aspects, as in Table5. Logistic regression can be applied to investigate related factors, e.g., studies on factors related to tooth loss, tooth wear, implant failure, or temporomandibular joint clicking [29–32]. It can also be used to establish associations between different variables, e.g., between malocclusion and quality of life, between dentist characteristics and treatment decision, between demographic data and awareness of dental waste management, or between consanguineous marriage and dental carries [33–36]. Logistic regression can be used for developing a predictive model, such as sex identification using oral measurements in forensic science or the prediction of esthetic preference using demographic data [20, 37, 38]. The model can also be applied as a screening test for hyperglycemic patients [39] or identifying the stage of carcinoma using specific genes [40].Table 5
Application of binary logistic regression in dentistry.
Application in dentistryBinary response variableIndependent variablesAuthors (year)Related factorsTooth loss (yes/no)Related factorsUrzua (2012) [29]Temporomandibular joint clicking (yes/no)Dental malocclusion featuresManfredinia (2014) [30]Erosion tooth wear (yes/no)Daily diet, habit, and health conditionsKitasako (2017) [31]Failure of the implants (success/failure)Predictive variablesMayta-Tovalino (2020) [32]AssociationQuality of life (good/poor)Malocclusion and sociodemographicAnthony (2018) [33]Decision to choose an indirect pulp capping (yes/no)Demographic data, dentist characteristicsKakudate (2019) [34]Awareness, knowledge, and management of biological waste (correct/incorrect)Demographic dataDiaz-Soriano(2020) [35]Dental carries (yes/no)Consanguineous marriage and other factorsKhan (2020) [36]Predictive modelSex determination (male/female)Canine and intercanine widthsKeawmuangmoon (2017) [20]Sex determination (male/female)Palatal and incisive papilla morphologyMustafa (2019) [37]Esthetic variation (present/absent)Demographic dataRosenstiel (2002) [38]Screening test (risk score)Hyperglycemia (yes/no)Risk factorsTantipoj (2020) [39]Identify stage-specific genesOral squamous cell carcinoma stage (tumor/normal)Differentially expressed genesRandhawa (2015) [40]


## 9. Conclusion

Binary logistic regression is utilized in dental research to understand the relationship between multiple independent variables and a binary response variable. Regression coefficients of a final model can describe the significance of each independent variable in regards to the response variable in terms of the odds ratio and Wald test. Moreover, the established model can predict the probability of a new case with the help of the probability equation. The goodness of the fit test for the final model can be examined by the Hosmer–Lemeshow test. Validation of the model can be carried out by dividing the data into validation and training sets. However, clinical factors must be considered for model plausibility. This review provides practical guidance to dentists and dental researchers alike to enhance their understanding of the analysis, which is greatly beneficial when reading articles or performing clinical research that involves binary response.



---

*Source: 5358602-2022-03-08.xml*