I think that "utilizing logistic regression" is a red herring,
or a mistake. You are looking at treated diabetics who are or
are not using antidepressants.
"Ignoring any development from 2005 to 2012" seems to
say that you are not interested in the matches between time.
In that case, you have a 2x2 contingency table, where the total
N is the sum of "receiving antidiabetics" at 2005 and 2012. No
one else is in the sample.
That is the comparison of two snapshots. This is a 2x2
Crosstab. If the N (diabetic) for each year is about the same, the
OR will be the ratio of the N's who are taking antidepressants.
More sophisticated testing would pull out the matches and look
at the "changes" (McNemar's test) separately from the people who
are only in one year of data. Or do something with similar effect.
--
Rich Ulrich
Date: Mon, 18 Mar 2013 09:49:20 +0100
From:
[hidden email]Subject: Compare years
To:
[hidden email]Hello to you all
I calculate odds ratio for concurrent use of antidepressants when you also receive antidiabetic medication. Utilizing logistic regression. How can I compare and test difference between 2 years in these ORs? Appreciate syntax.
E.g.: OR for concurrent use of drug A when you use drug B in 2005 is X, and OR for concurrent use of drug A when you use drug B in 2012 is X.
How can I test if OR(2005) is significantly different from OR(2012)?
In both cases we use data from the complete Norwegian population. Our ORs are a "snapshot" from each year, and as some patients use drug B in both years, there is a partial overlap between the patient groups in these two years.
However, I am not interested in any development from 2005 to 2012. Just to compare two snapshots, point prevalences.
Øivind