
Originally Posted by
Nicapyke
Hi all,
I'm building a logistic model to evaluate an epidemiologic research question and I want to automate the process of fitting logistic models for every possible combination of my potential confounders. I've done this before using OLS regression in SAS by specifying a certain algorithm, but I have no idea how to do it in Stata.
To clarify,
I have c1, c2, c3, c4 .... ck. I want to automate the process of fitting a model for
d = e + c1
d = e + c2
d = e + c1 + c2
etc
Can anyone help me code this?
Thanks,
Mike