STATA 21

특정한 집단 별로 기초통계 구하기

* 잘 정리된 사이트 https://dreamingpeace.tistory.com/44 [STATA] 정말 유용한 egen row: mean, sum, total, max, min, tag, group, concat, cut egen command를 통해 활용할 수 있는 함수들을 몇 가지 알아보겠습니다. mean() egen mean_price = mean(price), by(store_id) 이는 각각의 store_id에 대하여 price의 평균값을 mean_price라는 새로운 변수로 저.. dreamingpeace.tistory.com 여기서는 아래의 블로그를 참조했다고 함 https://stataprogect. blogspot.com/2007/12/step4-thank-god-for-egen_co..

STATA 2022.04.07

분위수 생성방법

pctile, xtile ....헷갈릴 때마다 찾아보게 되는데...둘은 다르다. pctile newv1 = oldva1, nquantiles(변수이름) // 10분위 중의 3분위이면, 3분위에 해당하는 변수값을 생성하는 것이다 xtile : 분위를 생성하는 것이다. xtile newv1 = oldva1, nquantiles(변수이름) // 10분위 중의 3분위인지 5분위인지...' 참고로, centile 은 표본의 분위값을 표로 보여주는 것이다. 0분위 값이 최소값, 100분위 값이 최대값이 된다.

STATA 2021.09.22

그래프 합치기

먼저, 각각의 그래프를 그려준다 gr name1 gr name2 다음으로 두 그래프를 합쳐준다 gr combine name1 name2 gr combine name1 name2, ycom // y 축의 단위를 같게 해주고 싶을 때 * Combine stored graphs named mygraph1 and mygraph2 into a single figure graph combine mygraph1 mygraph2 * Combine graphs mygraph1.gph and mygraph2.gph that have been saved to disk using graph save graph combine "mygraph1" "mygraph2" Same as above graph combine mygraph..

STATA 2021.07.03