如何在SAS中没有输入数据的情况下生成测试数据?
答案 0 :(得分:2)
例如
proc print data=help.class;
run;
More examples can be found here
喜欢
data person;
infile datalines delimiter=',';
input name $ dept $;
datalines;
John,Sales
Mary,Acctng
;
run;
喜欢
data whatever;
do Key = -99 to 99 by 2;
Square= Key*Key;
Value= rand("Uniform");
output;
end;
run;
答案 1 :(得分:0)
有sashelp
库,但是如果您要查找其他内容,请在此处查看Bizarro Ball数据:https://github.com/allanbowe/BizarroBall
要导入,只需运行以下命令:
filename bizarro url
"https://raw.githubusercontent.com/allanbowe/BizarroBall/master/bizarroball.sas";
%inc bizarro;