reshape1 06. [STATA] 테이블 reshape Long → Wide 예시를 위해서 bplong을 사용하였다. sysuse bplong br 이 테이블을 가로로 Wide한 형태로 만들 것이다. 현재는 혈압이 세로로 Before, After로 표시되어 있지만, bp를 가로로 전 후로 나타낼 것이다. reshape wide bp, i(patient) j(when) br . reshape wide bp, i(patient) j(when) (j = 1 2) Data Long -> Wide ------------------------------------------------------------------------ > ----- Number of observations 240 -> 120 Number of variables 5 -> 5 j variable .. 2021. 8. 4. 이전 1 다음