Hello everyone,
The following is part of my dataset. This is a case-control dataset, 1 case is matched with 2 controls (i.e. 3 people in a match set). Now, I want to make it a 1:1 case-control and generate a "paired 2 by 2 table".
Does anyone have any insight about this?
Thank you!
The following is part of my dataset. This is a case-control dataset, 1 case is matched with 2 controls (i.e. 3 people in a match set). Now, I want to make it a 1:1 case-control and generate a "paired 2 by 2 table".
Does anyone have any insight about this?
Thank you!
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte matchset float ntitre0 byte(controlno case) 3 11.71193 1 0 3 11.60469 2 0 3 9.771929 . 1 6 10.52193 1 0 6 10.78193 2 0 6 9.001929 . 1 9 12.57193 1 0 9 11.26193 . 1 9 11.40193 2 0 13 11.80193 1 0 13 11.42193 . 1 13 10.72193 2 0 14 10.64193 1 0 14 10.03193 . 1 14 10.93193 2 0 16 11.75193 1 0 16 11.48193 2 0 16 12.40193 . 1 17 11.14193 1 0 17 11.54193 2 0 17 11.52193 . 1 19 9.438595 . 1 19 9.471928 1 0 19 9.811929 2 0 22 10.04693 . 1 22 10.48193 1 0 22 9.461927 2 0 24 9.001929 1 0 24 10.35193 . 1 24 10.95526 2 0 25 9.221928 1 0 25 10.02193 2 0 25 10.28193 . 1 end
Comment