Department of Economics, NTU.

2009 Autumn.

╰(゚Д゚≡゚д゚)σ ╞ 關於本站 ╡

本站為台灣大學經濟系於09年秋天開設之課程「統計學與實習」的實習課專用部落格。
本課程之授課教授為陳旭昇老師(上學期)與駱明慶老師(下學期)。

上課時間:

正課 三234 社科04
實習 二234 社科04



第二次STATA作業參考coding

以下為建議的指令。

use CPS04.dta, clear
1.)
sum ahe
2.)
sum ahe
3.)
scatter ahe age
/*positive correlation*/
4.)
hist ahe
5.)
cor ahe age
6.)
codebook female
7.)
reg ahe age female bachelor, r
8.)
test female
9.)
test bachelor
10.)
test femlae bachelor
11.)
gen ln_age=ln(age)
reg ahe ln_age, r
/*variable in natural log captures the effcet of its percentage change on the regressand*/
12.)
sort bachelor
gen z=_n
reg ahe z, r
/*this outcome illustrates the difference between statistical significance and economic significance*/

0 意見 :: 第二次STATA作業參考coding

回應本文