缺失值
mdesc -- Displays the number and proportion of missing values for each variable in varlist.
mdesc varlist [if] [in] [, abbreviate(#) any all none ]
misstable -- Tabulate missing values
* Report counts of missing values
* misstable summarize [varlist] [if] [in] [, summarize_options]
* Report pattern of missing values
* misstable patterns [varlist] [if] [in] [, patterns_options]
nmissing
ssc install nmissing//安裝外部命令nmissing
ssc install npresent//安裝外部命令npresent
nmissing//統(tǒng)計(jì)數(shù)據(jù)缺失的變量
npresent//統(tǒng)計(jì)沒(méi)有數(shù)據(jù)缺失的變量
數(shù)據(jù)整理
iefieldkit
iefieldkit: Commands for primary data collection and cleaning
Data collection and cleaning workflows implement highly repetitive but extremely important processes. In this article, we introduce iefieldkit, a package developed to standardize and simplify best practices for high-quality primary data collection across the World Bank’s Development Research Group Impact Evaluations department. iefieldkit automates error-checking for electronic Open Data Kit-based survey modules such as those implemented in SurveyCTO; duplicate checking and resolution; data cleaning, including renaming, labeling, recoding, and survey harmonization; and codebook creation.
回歸
**aaplot ** 自動(dòng)對(duì)散點(diǎn)擬合線性或二次項(xiàng)
Scatter plot with linear and/or quadratic fit, automatically annotated