Models

 

Age and Gender

Results: Diabetes is more prevalent among males than females. As age advances, the likelihood of developing diabetes increases progressively. There is a notable peak around the age of 80, with nearly 14% of individuals in the sample affected by the disease

 

Data Model

stan_glm
 family:       binomial [logit]
 formula:      diabetes ~ age + gender
 observations: 1250
 predictors:   3
------
            Median MAD_SD
(Intercept) -5.00   0.38 
age          0.05   0.01 
genderMale   0.41   0.21 

------
* For help interpreting the printed output see ?print.stanreg
* For info on the priors used see ?prior_summary.stanreg

Analysis: The positive median for age and genderMale suggests that males are more prone to diabetes than females, and the risk of developing diabetes rises with age. However, the median absolute deviation points to some uncertainty about the relationship between gender, age, and diabetes.