【发布时间】:2016-06-30 22:33:57
【问题描述】:
我有两个数据集:form 和 pool 具有相似的表结构。
上述两个数据集有三列,其中 Key 和 Level 组合在 form 数据集有 4 行。
-
还有 Sub-Level 数据在 form 和 pool 数据在 Key 和 Level 级别是互斥的。
Sub-Level 值具有分配给它们的特定 Level,即 Level 和 Sub-Level 遵循一个层次结构。
我想在 form 的 Sub-Level 列下填充 null 值 pool 数据集中具有 Sub-Level 值的数据集,其中 Sub-Level > pool 数据集中应该属于相同的 Key 和 Level form 数据集。
如何在 SAS 中做到这一点?
EDIT 1 :null 值 填充在 form 数据集中必须在每个数据集中是不同的或唯一的键、级别组。
【问题讨论】:
-
标题和标签中都提到的随机性成分是从哪里来的?
-
@superfluous:从“pool”数据集中随机选择 Sub_Level 时出现随机性,以在“form”表的“Sub-Level”列中填充空值。