缺失值
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//统计数据缺失的变量
npresent//统计没有数据缺失的变量
数据整理
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 ** 自动对散点拟合线性或二次项
Scatter plot with linear and/or quadratic fit, automatically annotated
网友评论