软件stata
sysuse nlsw88,clear
global yx "wage hours collgrad ttl_exp"
forvalues i=1/4{
dis _n(2) in yellow "Occupation== " in green `i'
reg $yx if occupation==`i'
est store m`i'
}
以上代码中 _n(2)是什么意思, in yellow in green这两个是随编写者心情生成的名字嘛?
dis _n(2) in yellow "Occupation== " in green `i' 这行代码什么意思
变量occupation内容 : Professional/technical | Managers/admin | Sales | Clerical/unskilled | Craftsmen | Operatives |Transport | Laborers | Farmers | Farm laborers | Service | Household workers | Other |