Greetings all,
My aim is to run code that generates three numbers: 1. the number of twin pairs that both smoke, 2. the number of twin pairs that both do not smoke, 3. the number of twin pairs where one twin smokes but the other doesn't. I tried to do some type of equivalence using TWINPAIR and ID hand also xtset owever was not able to do so. I wonder given the data below how I could generate these three numbers. Thank you kindly.
My aim is to run code that generates three numbers: 1. the number of twin pairs that both smoke, 2. the number of twin pairs that both do not smoke, 3. the number of twin pairs where one twin smokes but the other doesn't. I tried to do some type of equivalence using TWINPAIR and ID hand also xtset owever was not able to do so. I wonder given the data below how I could generate these three numbers. Thank you kindly.
ID | TWINPAIR | EDUCATION | SMOKING | STRESS |
1 | 1 | HS | 0 | 4 |
2 | 1 | COL | 1 | 8 |
3 | 2 | <HS | 1 | 3 |
4 | 2 | <HS | 0 | 8 |
Comment