Hello Statalisters. I have been approached for advice about how to analyze a 3-level outcome variable that has been measured on 3 different occasions. The subjects are surgical patients, and the occasions are pre-op and 3 and 12 months post-op. I gather there are actually multiple outcomes, but so far, I have seen data for only one of them:
The researchers wish to test the null hypothesis that the proportion of patients in each category does not change over time.
My first thought was that if there were only two time points, one could use McNemar's Chi-square, and I wondered if there was a 3D extension of McNemar's test. But as I write this, I suppose McNemar's test, or an extension thereof, would ignore the ordinal nature of the variables, making it less than ideal.
My next thought was that one could use a form of ordinal logistic regression that can accommodate the dependencies in the repeated measures. Perhaps one of the following, for example:
But as you'll see if you try these commands using the data I posted above, there are problems.
The -ologit- command runs, but this warning is included below the table of coefficients:
I assume some of this has to do with the fact that virtually all patients are in the 3rd category after the first time point.
As I've said, there are some other outcome variables I've not seen yet, so I don't know if this same pattern will occur for them, but it would not surprise me if it did.
I welcome any thoughts you might have about how to proceed.
Cheers,
Bruce
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float id byte(time y) 1 0 2 1 1 2 1 2 2 2 0 1 2 1 2 2 2 2 3 0 2 3 1 2 3 2 2 4 0 2 4 1 2 4 2 2 5 0 1 5 1 2 5 2 2 6 0 1 6 1 2 6 2 2 7 0 1 7 1 2 7 2 2 8 0 0 8 1 2 8 2 2 9 0 1 9 1 2 9 2 2 10 0 0 10 1 2 10 2 2 11 0 2 11 1 2 11 2 2 12 0 0 12 1 2 12 2 1 13 0 1 13 1 2 13 2 2 14 0 1 14 1 2 14 2 2 15 0 2 15 1 2 15 2 2 16 0 1 16 1 2 16 2 2 17 0 2 17 1 2 17 2 2 end
My first thought was that if there were only two time points, one could use McNemar's Chi-square, and I wondered if there was a 3D extension of McNemar's test. But as I write this, I suppose McNemar's test, or an extension thereof, would ignore the ordinal nature of the variables, making it less than ideal.
My next thought was that one could use a form of ordinal logistic regression that can accommodate the dependencies in the repeated measures. Perhaps one of the following, for example:
Code:
ologit y i.time, vce(cluster id) meologit y i.time || id:
The -ologit- command runs, but this warning is included below the table of coefficients:
Note: 17 observations completely determined. Standard errors questionable.The -meologit- command iterates 11 times before displaying "Refining starting values", and then appears as if it will iterate forever (with a not concave warning for each iteration after the first few).
I assume some of this has to do with the fact that virtually all patients are in the 3rd category after the first time point.
Code:
. tabulate y time | time y | 0 1 2 | Total -----------+---------------------------------+---------- 0 | 3 0 0 | 3 1 | 8 0 1 | 9 2 | 6 17 16 | 39 -----------+---------------------------------+---------- Total | 17 17 17 | 51
As I've said, there are some other outcome variables I've not seen yet, so I don't know if this same pattern will occur for them, but it would not surprise me if it did.
I welcome any thoughts you might have about how to proceed.
Cheers,
Bruce
Comment