文章预览
前情回顾 清洗数据 import delim death - rate - from - air - pollution - per - 100000 , clear
drop e
drop if mi ( c )
ren c code3
ren d AirPollDeath
replace A = A / 10 ^ 5
la var c 国家地区三位码
la var A 国家空气污染死亡率
sa 国家空气污染死亡率 , replace
d
ta y
kdensity A 得到结果 Contains data from 国家空气污染死亡率.dta
Observations: 6,150
Variables: 3 19 May 2024 09:48
-------------------------------------------------------------------------------
Variable Storage Display Value
name type format label Variable label
-------------------------------------------------------------------------------
code3 str8 %9s 国家地区三位码
year int %8.0g Year
AirPollDeath float %9.0g 国家空气污
………………………………