Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我PROC SURVEYSELECT在 SAS 中使用对数据集进行采样DT,OUT=DT_SAMPLED但我也希望将那些DT没有被选中的样本放入其中。我可以知道是否有办法吗?提前致谢。
PROC SURVEYSELECT
DT
OUT=DT_SAMPLED
您可以使用OUTALLon 语句PROC SURVEYSELECT,它将输出带有selected所选记录标志的所有记录。
OUTALL
selected
proc surveyselect data=sashelp.class outall out=classsamp n=5 seed=7; run; proc freq data=classsamp; tables selected; run;
您将看到 5 个选中 (1) 和 14 个未选中 (0)。