第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

以下內(nèi)容是關(guān)于一個(gè)stata的題目,請(qǐng)問該怎么做呀?

以下內(nèi)容是關(guān)于一個(gè)stata的題目,請(qǐng)問該怎么做呀?

題目是英語的,教育和婚姻變量沒labels,請(qǐng)根據(jù)下邊副本里的價(jià)值標(biāo)簽給教育和婚姻貼上標(biāo)簽The variables –education– and –married– are numeric but do not have valuelabels, yet. Label the values of the two variables according to those given belowin the Appendix.Value labels–married–:1 - married2 - not married–education–: 1 - tertiary2 - unfinished tertiary3 - special secondary4 - secondary5 - 7 years of schooling 6 - primary7 - can read and write 8 - can read9 - illiterate10 - child aged 0-8 99 - missing value
查看完整描述

2 回答

?
慕尼黑8549860

TA貢獻(xiàn)1818條經(jīng)驗(yàn) 獲得超11個(gè)贊

cd /Victor/stata

//二

//1.a

sysuse "auto.dta",clear

foreach num of numlist 1/74{

export excel using "auto`num'.xlsx" in `num'

}

//1.b

foreach num of numlist 1/74{

import excel "auto`num'", clear

save "auto`num'.dta", replace

}

//將excel轉(zhuǎn)換成dta格式

use "auto1.dta",clear

foreach num of numlist 2/70{

append using "auto`num'.dta"

}

save "auto_new.dta", replace

//1.c

foreach num of numlist 1/74{

erase "auto`num'.xlsx"

}

//2(因?yàn)槲业膕tata軟件無法識(shí)別跨行命令,只能一長(zhǎng)串寫在一行)

use "auto_new.dta",clear

twoway(scatter weight mpg if foreign == 0, mcolor(navy blue) msymbol(x)) (scatter weight mpg if foreign == 1, mcolor(red))  , legend(on order(1 "foreign" 2 "domestic")  ring(0)) title("The Relatonship between Car Weight and MPG") ylabel(1000 2000 3000(2000)5000) xlabel(10(5)35)

//3

sysuse "nlsw88.dta",clear

tabstat wage hours ttl_exp tenure ,by(union) stat(n mean sd min median) c(s)

//4

sysuse "nlsw88.dta",clear

order wage hours ttl_exp tenure collgrad

foreach v of varlist wage-collgrad{

ttest `v',by(union)

}

//5

sysuse "nlsw88.dta",clear

reg wage age race industry occupation ttl_exp hours

ssc install logout

logout, save(result_2017302330037.xlsx) excel dec(3) replace:reg wage age race industry occupation ttl_exp hours

//三

sysuse "firm.dta",clear

sort ID date ipc patent_ID

//2

replace firm_name = subinstr(firm_name, "有限責(zé)任公司"," ",.)   

replace firm_name = subinstr(firm_name, "集團(tuán)股份有限公司"," ",.)

replace firm_name = subinstr(firm_name, "股份有限公司"," ",.)

//3

//計(jì)算每個(gè)企業(yè)每年專利數(shù)量總和

use "firm.dta",clear

encode patent_ID ,gen(patent_ID1) 

bys ID date : egen num_patent=count(patent_ID1)

//計(jì)算不重復(fù)的領(lǐng)域數(shù)

duplicates drop ID date ipc,force

bys ID date: egen ipc_sum=count(ipc)



查看完整回答
反對(duì) 回復(fù) 2022-01-09
?
天涯盡頭無女友

TA貢獻(xiàn)1831條經(jīng)驗(yàn) 獲得超9個(gè)贊

label命令比較簡(jiǎn)單的

查看完整回答
反對(duì) 回復(fù) 2022-01-09
  • 2 回答
  • 0 關(guān)注
  • 262 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)