2014-03-23 条件に当てはまる観測を数える STATA R Rの場合 nrow(subset(x, 条件))STATAの場合 sum if 条件; scalar a = r(N) STATAはちょっとめんどくさい