Logistic regression when covariates are random effects from a non-linear mixed model