Please consider the following example:
Code:
clear . input str4 id byte str3 shock byte str3 acc byte str3 netw id shock acc netw 1. 1001 yes yes no 2. 1002 yes no no 3. 1003 yes no yes 4. 1004 yes yes yes 5. 1005 no yes yes 6. 1006 no no yes 7. end . list +---------------------------+ | id shock acc netw | |---------------------------| 1. | 1001 yes yes no | 2. | 1002 yes no no | 3. | 1003 yes no yes | 4. | 1004 yes yes yes | 5. | 1005 no yes yes | |---------------------------| 6. | 1006 no no yes | +---------------------------+
Any help would be greatly appreciated.
Thank you.
0 Response to Running a correlation for a subset of observations
Post a Comment