
Call:
glm(formula = as.formula(paste("y ~ pbfmi_sex_z * cohort + cohort_interval +", 
    rhs)), family = binomial(link = "cloglog"), data = ipd)

Coefficients: (3 not defined because of singularities)
                            Estimate Std. Error z value Pr(>|z|)    
(Intercept)                -8.414067   0.671964 -12.522  < 2e-16 ***
pbfmi_sex_z                 0.209463   0.034572   6.059 1.37e-09 ***
cohortELSA                  0.721521   0.597591   1.207 0.227285    
cohortHRS                   1.240810   0.557772   2.225 0.026109 *  
cohort_intervalCHARLS.4    -0.190455   0.240363  -0.792 0.428148    
cohort_intervalCHARLS.7     1.814088   0.173547  10.453  < 2e-16 ***
cohort_intervalCHARLS.9     1.092553   0.197501   5.532 3.17e-08 ***
cohort_intervalELSA.2      -0.795353   0.339670  -2.342 0.019204 *  
cohort_intervalELSA.4       0.041999   0.306530   0.137 0.891020    
cohort_intervalELSA.6      -0.042425   0.316568  -0.134 0.893391    
cohort_intervalELSA.8       0.188348   0.313968   0.600 0.548575    
cohort_intervalELSA.10      0.073324   0.331526   0.221 0.824959    
cohort_intervalELSA.12      0.316014   0.333751   0.947 0.343712    
cohort_intervalELSA.14            NA         NA      NA       NA    
cohort_intervalHRS.2       -0.606662   0.213361  -2.843 0.004464 ** 
cohort_intervalHRS.4       -0.061506   0.201828  -0.305 0.760560    
cohort_intervalHRS.6       -0.220031   0.210594  -1.045 0.296110    
cohort_intervalHRS.8       -0.502758   0.229640  -2.189 0.028573 *  
cohort_intervalHRS.10      -0.156849   0.224458  -0.699 0.484683    
cohort_intervalHRS.12      -0.050546   0.232534  -0.217 0.827921    
cohort_intervalHRS.14             NA         NA      NA       NA    
age                         0.048687   0.005566   8.747  < 2e-16 ***
male                        0.063837   0.073450   0.869 0.384776    
educationLess_than_primary  0.441858   0.505799   0.874 0.382345    
educationPrimary            0.468031   0.514302   0.910 0.362806    
educationSecondary          0.474697   0.520319   0.912 0.361601    
educationE1                 0.366080   0.132578   2.761 0.005758 ** 
educationE2                 0.162656   0.120219   1.353 0.176058    
educationE3                       NA         NA      NA       NA    
married                     0.026959   0.075689   0.356 0.721707    
current_smoker              0.129027   0.097579   1.322 0.186076    
current_drinker            -0.129255   0.076448  -1.691 0.090884 .  
pbfmi_sex_z:cohortELSA     -0.293317   0.080023  -3.665 0.000247 ***
pbfmi_sex_z:cohortHRS      -0.231586   0.061366  -3.774 0.000161 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

(Dispersion parameter for binomial family taken to be 1)

    Null deviance: 8806.5  on 38642  degrees of freedom
Residual deviance: 8404.3  on 38612  degrees of freedom
AIC: 8466.3

Number of Fisher Scoring iterations: 7

