As both eyes from the same patient are included, I was told by my professor that I cannot use the independent T-test because of the inter-eye correlation.
I am very new to Stata and I would appreciate it if anyone could please share with me the code to perform this analysis.
My dataset is attached below, thanks so much!
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte(Group Side) double IOP long ID 1 1 20 63773 1 0 20 63773 1 1 17 30927 1 0 17 30927 1 1 22 4304 1 0 22 4304 1 1 22 56391 1 0 21 56391 1 1 20 33297 1 0 19 33297 1 1 18 15191 1 0 19 15191 1 1 24 2675 1 0 22 2675 1 1 22 33371 1 0 21 33371 1 1 22 85624 1 0 22 85624 1 1 15 85050 1 0 17 85050 1 1 18 81384 1 0 19 81384 1 1 15 52667 1 0 16 52667 1 1 22 74842 1 0 23 74842 1 1 20 69230 1 0 19 69230 1 1 14 2733 1 0 15 2733 1 1 20 59009 1 0 19 59009 1 1 19 66340 1 0 18 66340 1 1 22 84090 1 0 21 84090 1 1 17 56503 1 0 18 56503 1 1 22 83139 1 0 21 83139 1 1 23 62736 1 0 23 62736 1 1 21 72142 1 0 21 72142 1 1 21 88032 1 0 21 88032 0 0 17 597 0 0 24 598 0 0 20 599 0 1 14 601 0 0 12 602 0 1 11 603 0 1 13 604 0 1 11 605 0 0 14 606 0 0 14 607 0 1 21 608 0 1 13 609 0 0 10 610 0 0 19 611 0 0 20 612 0 1 19 613 0 0 19 615 0 0 18 616 0 1 19 617 0 0 16 618 0 1 12 619 0 1 12 620 0 1 16 621 0 0 11 622 0 0 13 623 0 0 24 624 0 0 9 625 0 0 9 626 0 1 14 627 0 1 14.5 655 0 0 14 655 0 1 15 656 0 0 16 656 0 1 12 657 0 0 15 657 0 1 16 658 0 0 17.5 658 0 1 16 660 0 0 15 660 0 1 14 661 0 0 19 661 0 1 17.5 662 0 0 16 662 0 1 14.5 663 0 0 14.5 663 0 1 13.5 666 0 0 13.5 666 0 1 11 667 0 0 14.5 667 0 1 15 668 0 0 14.5 668 0 1 15 669 0 0 15.5 669 0 1 17.5 670 end
0 Response to analysis on two-eye dataset
Post a Comment