Dear all,
I have a longitudinal dataset with 600 patients (variable pid) who had an doctors appointment every year once for five years (variable year) and every year it was noticed if the patient took an antidepressant (variable antidepressant), thus I have 3000 observations.
I want to answer the question if the antidepressant intake changed over the years independantly from sex.
My idea was to use one of the following formulas:
But, unfortunately STATA is crushing when I run the code. Is this the wrong approach or is the code incorrect?
Thanks for your help in advance.
Kind regards, Martin
I have a longitudinal dataset with 600 patients (variable pid) who had an doctors appointment every year once for five years (variable year) and every year it was noticed if the patient took an antidepressant (variable antidepressant), thus I have 3000 observations.
I want to answer the question if the antidepressant intake changed over the years independantly from sex.
My idea was to use one of the following formulas:
Code:
meqrlogit antidepressant year sex || pid:year melogit antidepressant year sex || pid:year
Thanks for your help in advance.
Kind regards, Martin
Comment