I am interested in determining whether VarX changes over Time in my experiment. Both eyes of each subject was used.
I'm not sure if this code is correct. I was told I need to account for the interaction between the left and right eye for each subject as well.
If VarX does in fact vary between a certain time point compared to the baseline, I tried to perform post estimation using:
but it doesn't seem to work.
I could really appreciate any help, thanks.
Code:
xtmixed VarX Time || Patient: || Side: Time
If VarX does in fact vary between a certain time point compared to the baseline, I tried to perform post estimation using:
Code:
pwcompare Time
I could really appreciate any help, thanks.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte(Patient Side) int Time double VarX 1 1 0 1.28 1 1 1 1.31 1 1 2 1.2 1 1 3 1.03 1 1 4 1.27 1 1 5 1.26 1 1 6 1.3 1 0 0 1.2 1 0 1 1.13 1 0 2 1.13 1 0 3 1.09 1 0 4 1.1 1 0 5 1.11 1 0 6 1.2 2 1 0 1.1 2 1 1 .81 2 1 2 .91 2 1 3 .98 2 1 4 .84 2 1 5 1.05 2 1 6 .95 2 0 0 1.13 2 0 1 .84 2 0 2 .86 2 0 3 .85 2 0 4 .88 2 0 5 .89 2 0 6 .99 3 1 0 1.12 3 1 1 1.08 3 1 2 1.02 3 1 3 .92 3 1 4 . 3 1 5 . 3 1 6 .98 3 0 0 .95 3 0 1 1.02 3 0 2 .94 3 0 3 1.1 3 0 4 . 3 0 5 . 3 0 6 .93 4 1 0 1.02 4 1 1 1.16 4 1 2 1.1 4 1 3 .89 4 1 4 1.38 4 1 5 .94 4 1 6 1.04 4 0 0 1.18 4 0 1 1.07 4 0 2 1.17 4 0 3 .9 4 0 4 1.5 4 0 5 .98 4 0 6 1.17 5 1 0 1.43 5 1 1 1.3 5 1 2 1.32 5 1 3 1.05 5 1 4 1.26 5 1 5 1.22 5 1 6 1.26 5 0 0 1.16 5 0 1 1.23 5 0 2 1.41 5 0 3 1.14 5 0 4 1.03 5 0 5 1.11 5 0 6 1.14 6 1 0 1.24 6 1 1 1.79 6 1 2 1.27 6 1 3 1.37 6 1 4 1.32 6 1 5 1.33 6 1 6 1.3 6 0 0 1.36 6 0 1 1.28 6 0 2 1.42 6 0 3 1.42 6 0 4 1.32 6 0 5 1.34 6 0 6 1.3 7 1 0 1.22 7 1 1 1.19 7 1 2 1.08 7 1 3 1.17 7 1 4 1.13 7 1 5 1.14 7 1 6 1.15 7 0 0 1.14 7 0 1 1.2 7 0 2 1.2 7 0 3 1.23 7 0 4 1.17 7 0 5 1.13 7 0 6 1.17 8 1 0 1.07 8 1 1 1.3 end
Comment