如何用用户定义的值替换缺失的区间变量值?
我已经完成了在Impute和Replacement节点中可以看到的所有选项,但没有找到任何东西。谷歌返回了一个 2003 年的 SAS 文档,该文档显示了您过去是如何使用Replacement节点执行此操作的,当时那里有一个插补列。
我正在使用 SAS Enterprise Miner OnDemand 版本 14.1(当前版本)。
如何用用户定义的值替换缺失的区间变量值?
我已经完成了在Impute和Replacement节点中可以看到的所有选项,但没有找到任何东西。谷歌返回了一个 2003 年的 SAS 文档,该文档显示了您过去是如何使用Replacement节点执行此操作的,当时那里有一个插补列。
我正在使用 SAS Enterprise Miner OnDemand 版本 14.1(当前版本)。
您可以使用 Impute 节点执行此操作。您可以在 SEMMA 列表的“修改”选项卡下找到它。
如果一切都失败了,您始终可以使用 SAS 代码节点和提供的 EM 宏变量来导入/导出数据集并根据需要进行修改。
data &em_export_train
&em_export_validate
&em_export_test;
set &em_import_train(in=train)
&em_import_validate(in=valid)
&em_import_test(in=test);
if(missing(var) ) then var = <new value>;
select;
when(train) output &em_export_train;
when(validate) output &em_export_validate;
when(test) output &em_export_test;
otherwise;
end;
run;