Hello all,
I am having a problem calculating relative risks using the xtgee command (to account for clustering of variation owing to repeated measurements within a set of health facilities).
The command I am entering looks something like this, where _exposure_ indicates the time period (1=follow-up, 0=baseline) and _direct_ indicates the behavior (1=correct, 0=incorrect):
. xtgee direct exposure, i(group2) fam(bin) link(log) corr(exc) eform
What I get is a different relative risk than if I used:
. cs direct exposure
I suspect that xtgee us using the _exposure_ variable as the dependent variable. I'm not sure though. Is a conversion to a risk ratio not happening?
Apologies in advance if this is a simple matter that I'm missing.
Thanks.
I am having a problem calculating relative risks using the xtgee command (to account for clustering of variation owing to repeated measurements within a set of health facilities).
The command I am entering looks something like this, where _exposure_ indicates the time period (1=follow-up, 0=baseline) and _direct_ indicates the behavior (1=correct, 0=incorrect):
. xtgee direct exposure, i(group2) fam(bin) link(log) corr(exc) eform
What I get is a different relative risk than if I used:
. cs direct exposure
I suspect that xtgee us using the _exposure_ variable as the dependent variable. I'm not sure though. Is a conversion to a risk ratio not happening?
Apologies in advance if this is a simple matter that I'm missing.
Thanks.
Comment