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

Coefficients: (11 not defined because of singularities)
                                       Estimate Std. Error z value Pr(>|z|)    
(Intercept)                           -5.442520   0.990382  -5.495 3.90e-08 ***
pbfmi_sex_z                            0.220388   0.034663   6.358 2.04e-10 ***
cohort_intervalCHARLS.4               -0.204238   0.240343  -0.850 0.395450    
cohort_intervalCHARLS.7                1.781283   0.173622  10.260  < 2e-16 ***
cohort_intervalCHARLS.9                1.046450   0.197674   5.294 1.20e-07 ***
cohort_intervalELSA.2                 -5.813486   1.424534  -4.081 4.48e-05 ***
cohort_intervalELSA.4                 -4.950934   1.412315  -3.506 0.000456 ***
cohort_intervalELSA.6                 -5.011821   1.409444  -3.556 0.000377 ***
cohort_intervalELSA.8                 -4.756541   1.404331  -3.387 0.000706 ***
cohort_intervalELSA.10                -4.844115   1.402231  -3.455 0.000551 ***
cohort_intervalELSA.12                -4.561621   1.394575  -3.271 0.001072 ** 
cohort_intervalELSA.14                -4.855658   1.401836  -3.464 0.000533 ***
cohort_intervalHRS.2                  -2.989880   1.181443  -2.531 0.011383 *  
cohort_intervalHRS.4                  -2.436751   1.176699  -2.071 0.038374 *  
cohort_intervalHRS.6                  -2.586838   1.175506  -2.201 0.027763 *  
cohort_intervalHRS.8                  -2.862952   1.176317  -2.434 0.014940 *  
cohort_intervalHRS.10                 -2.506899   1.171358  -2.140 0.032341 *  
cohort_intervalHRS.12                 -2.390923   1.169762  -2.044 0.040959 *  
cohort_intervalHRS.14                 -2.333584   1.169573  -1.995 0.046016 *  
age                                    0.008906   0.011381   0.783 0.433907    
male                                  -0.094893   0.145136  -0.654 0.513226    
educationLess_than_primary             0.484180   0.507935   0.953 0.340473    
educationPrimary                       0.439047   0.514282   0.854 0.393266    
educationSecondary                     0.463357   0.519986   0.891 0.372878    
educationE1                            0.341797   0.162445   2.104 0.035372 *  
educationE2                            0.193444   0.139180   1.390 0.164562    
educationE3                                  NA         NA      NA       NA    
married                               -0.045841   0.136076  -0.337 0.736211    
current_smoker                        -0.031409   0.147672  -0.213 0.831568    
current_drinker                        0.110420   0.135294   0.816 0.414417    
pbfmi_sex_z:cohortELSA                -0.299645   0.081237  -3.689 0.000226 ***
pbfmi_sex_z:cohortHRS                 -0.233810   0.062024  -3.770 0.000163 ***
cohortELSA:age                         0.073662   0.016551   4.451 8.56e-06 ***
cohortHRS:age                          0.048613   0.013775   3.529 0.000417 ***
cohortELSA:male                        0.510007   0.208956   2.441 0.014657 *  
cohortHRS:male                         0.133550   0.181389   0.736 0.461570    
cohortELSA:educationLess_than_primary        NA         NA      NA       NA    
cohortHRS:educationLess_than_primary         NA         NA      NA       NA    
cohortELSA:educationPrimary                  NA         NA      NA       NA    
cohortHRS:educationPrimary                   NA         NA      NA       NA    
cohortELSA:educationSecondary                NA         NA      NA       NA    
cohortHRS:educationSecondary                 NA         NA      NA       NA    
cohortELSA:educationE1                -0.069964   0.293572  -0.238 0.811634    
cohortHRS:educationE1                        NA         NA      NA       NA    
cohortELSA:educationE2                -0.215835   0.279594  -0.772 0.440139    
cohortHRS:educationE2                        NA         NA      NA       NA    
cohortELSA:educationE3                       NA         NA      NA       NA    
cohortHRS:educationE3                        NA         NA      NA       NA    
cohortELSA:married                     0.217566   0.210241   1.035 0.300742    
cohortHRS:married                      0.054758   0.175906   0.311 0.755580    
cohortELSA:current_smoker              0.439364   0.272289   1.614 0.106616    
cohortHRS:current_smoker               0.400479   0.225593   1.775 0.075860 .  
cohortELSA:current_drinker            -0.210887   0.255303  -0.826 0.408789    
cohortHRS:current_drinker             -0.323852   0.170402  -1.901 0.057365 .  
---
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: 8365.9  on 38600  degrees of freedom
AIC: 8451.9

Number of Fisher Scoring iterations: 7

