在stata中用多重插补法,缺失数据的类型有0-1变量、序号变量、数值型变量。用多重插补法的时候,选择MICE插补。但是为什么做不出来呢?
只有将所有变量都当做数值型变量时才插补出来。
会不会是因为stata没有识别到我的0-1变量和序号变量,将这两种数据类型都当做数值型变量了?
具体命令如下:
mi impute chained (logit) land_into per_gender (ologit) per_edu per_health c_lanform (regress) expense worth rent , add(10) rseed(1201)
其中:0-1变量:land_into、per_gender ,序号变量:per_edu、per_health、c_lanform ,数值型变量:expense、worth、rent
报错内容如图
附件列表