STATA学习笔记:缺漏值的处理 |
您所在的位置:网站首页 › stata如何删除值为a的数据 › STATA学习笔记:缺漏值的处理 |
STATA学习笔记:缺漏值的处理
1. 缺漏值的标记
stata中缺漏值默认标记为"." ".“是数值,且是一个大于任何自然数的数值 【注意】 sum、generate等命令,会自动忽略缺漏值 count、keep等命令,会将缺漏值”."视为无穷大的一个数值 2.将其他缺漏值的标记转化为"."mvdecode命令 常见缺漏值的标记 N.A. N/A -99 -97 -9999 import delimited using "D3_miss01.txt" //使用import delimited命令导入txt格式数据
命令 ==ereturn == ereturn: Post the estimation results ereturn list : List e() stored results ereturn list函数e(sample) e(sample) Description: 1 if the observation is in the estimation subsample and 0 otherwise sum wage industry tenure grade if e(sample)==1 //e(sample)有两个值:0和1 //1表示对应行观测值参与回归
|
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |