第2回:データの加工・整理

Similar documents

100sen_Eng_h1_4

1311

8 Liquor Tax (2) 製成数量の累年比較 ( 単位 :kl) Yearly comparison of volume of production 区 分 平成 23 年度 FY2011 平成 24 年度 FY2012 平成 25 年度 FY2013 平成 26 年度 FY2014 清 合

第13回:交差項を含む回帰・弾力性の推定

A Comprehensive Guide to


Workbook1

01_定食01 (しょうがだし)

Copyright (c) 2004,2005 Hidetoshi Shimodaira :43:33 shimo X = x x 1p x n1... x np } {{ } p n = x (1) x (n) = [x 1,..

第11回:線形回帰モデルのOLS推定

jpn_dm

ပ မ န ပပအလ ပ နၾ Job Fairမ င မည ႔ ပ မ လ ပ ငန ခ ပခင အ တ မ ထ ထက င ခ န အပပင လတ လပ တ င က င န ၂မက အ ပ င မည ႔ လ ပ ငန အ လ က လမည ႔လ က င အ င င က င အ င ပပအလ ပ ထ

11 Energy and Water

1

ando_yama.kama

第8回 全日本 学生フォーミュラ大会 プログラム


日本産科婦人科学会雑誌第70巻第4号

Food Japan 2018 List of Exhibitors Exhibitor Name Prefecture Booth No 21 MAX NEW SOLUTION PTE LTD Singapore B01 AOKI-BREWING CO LTD Ibaraki C02 AOKISH

untitled

% 10%, 35%( 1029 ) p (a) 1 p 95% (b) 1 Std. Err. (c) p 40% 5% (d) p 1: STATA (1). prtesti One-sample test of pr

!!! 2!

zantei_cadet

4.9 Hausman Test Time Fixed Effects Model vs Time Random Effects Model Two-way Fixed Effects Model

Microsoft Word - Text_5_STATA_1_Jp_ doc

第 15 回全日本学生フォーミュラ大会公式通知 No.6 Date : Sep 7, :20(JST) 15th Student Formula Japan Official announcement No.6 Design Event Place Car No. Team Team P

卒業論文

CIDADE NIHONGO PREFEITURA POPULAÇÃO ÁREA DENSIDADE Aisai 愛西市 Aichi 65, Ama あま市 Aichi 86, ,16 Anjo 安城市 Aichi 176, ,047

y <- as.vector(xx %*% vv) # yy <- y %o% vv # sum((yy-xx)^) cat("\n") v0 <- rep(0,ncol(xx)-) # print(vv88(v0)) a <- optim(v0,rss88,control=list(trace=t

資料3小泉周先生発表資料

労働条件パンフ-ベトナム語.indd

IU/mL.1 IU/mL A , % % 6.% 7 B %.1 IU/mL IU/mL % %.1 IU/mL % 7/9 4

VERO IU/mL.1 IU/mL A , % % 6.% 7 B %.1 IU/mL IU/mL %.1 IU/mL 1

Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for

こんにちは由美子です

Microsoft Word - 計量研修テキスト_第5版).doc

最小2乗法

Microsoft Word - MetaFluor70取扱説明.doc

: (EQS) /EQUATIONS V1 = 30*V F1 + E1; V2 = 25*V *F1 + E2; V3 = 16*V *F1 + E3; V4 = 10*V F2 + E4; V5 = 19*V99

RT-PCR プロトコール.PDF

Japanese-Gregorian Year Conversion Table ねんごうせいれきへんかんひょう年号 西暦変換表 ō: Pronunciation should be lengthened, like oh. 156 しょうわ昭和 Shōwa へいせい 平成 Heisei 35 19

Microsoft PowerPoint - 稲木_XooNIps開発の近況.pptx

登録検査機関一覧

第 71 回日本産科婦人科学会学術講演会 (2018, 4, 11 名古屋 ) 専攻医教育セミナー 絨毛性疾患の疫学 診断 治療 名古屋大学 新美薫

Edmonton Japanese Community Association - History Project

AuthorManual_JSTP.ppt

untitled

Transcription:

2 2018 4 13 1 / 24

1. 2. Excel 3. Stata 4. Stata 5. Stata 2 / 24

1 cross section data e.g., 47 2009 time series data e.g., 1999 2014 5 panel data e.g., 47 1999 2014 5 3 / 24

micro data aggregate data 4 / 24

2009 5 / 24

Excel 1 2 1 3 2 4 3 Stata 13 6 / 24

Excel A B C D E 1 prefecture income expenditure male female 2 Hokkaido 227,349 155,491 1 0 3 Aomori 233,967 175,207 1 0...... 48 Okinawa 214,233 137,726 1 0 49 Hokkaido 207,155 172,835 0 1 50 Aomori 169,422 143,179 0 1...... 95 Okinawa 144,644 139,716 0 1 7 / 24

1 1. Excel consumption2009.xlsx 2018microdata1 2. A1 prefecture B1 income C1 expenditure D1 male E1 female 3. b134-2.xls B134-2 P11 BJ11 4. consumption2009.xlsx A2 8 / 24

5. consumption2009.xlsx A 2 Hokkaido, Aomori, Iwate, Miyagi, Akita, Yamagata, Fukushima, Ibaraki, Tochigi, Gumma, Saitama, Chiba, Tokyo, Kanagawa, Niigata, Toyama, Ishikawa, Fukui, Yamanashi, Nagano, Gifu, Shizuoka, Aichi, Mie, Shiga, Kyoto, Osaka, Hyogo, Nara, Wakayama, Tottori, Shimane, Okayama, Hiroshima, Yamaguchi, Tokushima, Kagawa, Ehime, Kochi, Fukuoka, Saga, Nagasaki, Kumamoto, Oita, Miyazaki, Kagoshima, Okinawa 6. consumption2009.xlsx A2 A48 A49 9 / 24

7. b134-2.xls B134-2 P37 BJ37 8. consumption2009.xlsx B2 9. b134-2.xls B134-2 P39 BJ39 10. consumption2009.xlsx C2 11. consumption2009.xlsx D2 D48 1 12. consumption2009.xlsx E2 E48 0 10 / 24

13. b134-2.xls B134-2 (2) P37 BJ37 14. consumption2009.xlsx B49 15. b134-2.xls B134-2 (2) P39 BJ39 16. consumption2009.xlsx C49 17. consumption2009.xlsx D49 D95 0 18. consumption2009.xlsx E49 E95 1 11 / 24

19. consumption2009.xlsx B17 C17 - missing value - Stata 20. consumption2009.xlsx 12 / 24

1 0 dummy variable male female 2 male 1 0 female 1 0 13 / 24

Stata Stata Excel Ver. 13 xls xlsx 14 / 24

Stata Word 1 Stata 15 / 24

2 1. Stata 13 2. File Log Begin... 2018microdata1 lecture20180413.smcl 3. File Import Excel spreadsheet (*.xls; *.xlsx) 4. Excel file: Browse... 5. 2018microdata1 consumption2009.xlsx 6. Import first row as variable names OK 16 / 24

7. File Save as 2018microdata1 consumption2009.dta 8. Command list prefecture income expenditure male female Enter list more 17 / 24

Command generate ( )=( ) generate Data Create or change data Create new variable Variable name: Specify a value or an expression Specify a value or an expression Create... 18 / 24

income expenditure 1,000 19 / 24

3 1. Command generate income_th=income/1000 Enter 2. Command generate expenditure_th =expenditure/1000 Enter 3. Command list prefecture income income_th expenditure expenditure_th male female Enter list 20 / 24

Command summarize ( ) Enter number of observations (mean) (standard deviation) (minimum) (maximum) 21 / 24

Obs: n. Mean: x = 1 n x i. n i=1 Std. Dev.: 1 n sx = (x i x) 2. n 1 Min: min{xi }. Max: max{x i }. i=1 22 / 24

4 1. Command summarize income income_th expenditure expenditure_th male female Enter list 2. Edit Copy 3. Word summary20180413.docx 2018microdata1 23 / 24

5 Stata 1. File Log Close 2. Stata 13 3. 2018microdata1 lecture20180413.smcl 24 / 24