我有以下代码来减去列"符合商店条件"来自专栏" Total Count"在SAS。出于某种原因,这是行不通的。我对SAS很新,但这似乎应该非常直接。我已经尝试了几乎所有我能想到的东西,所以任何帮助都会受到赞赏。
data Additional_UPCs (drop=_FREQ_);
set Additional_UPCs;
by ut_id;
retain total_count;
if ut_id = 19 then total_count = _FREQ_;
else total_count = total_count;
New_UPCs = (total_count-Eligible_in_Store);
run;