在以下程序中,完成该语句,以便当距离达到250英里或使用了10加仑燃油时,程序停止生成观测值()。data work.go250;set perm.cars;do gallons=1to 10...;Distance=gallons*mpg;output;end;run;
A.while(Distance< 250)B.when(Distance>250)C.over(Distance le 250)D.until(Distance=250)
单项选择题除了()其余都可以创建宏变量。
A.data linesB.proceduresC.the FORMAT statementD.the INPUT statement
单项选择题下列哪个proc步完全正确?()
A.B.C.D.
单项选择题变量Address2包含诸如Piscataway,NJ之类的值。如何将两个字母的州缩写分配给名为State的新变量?()
A.State=scan(address2,2);B.State=scan(address2,13,2);C.State=substr(address2,2);D.State=substr(address2,13,2);
单项选择题下列哪项时对Var1,Var2,Var3,Var4求均值?()
A.mean(var1,var4)B.mean(var1-var4)C.mean(of var1,var4)D.mean(of var1-var4)
单项选择题哪个SAS程序读取ID的值并保存每个Quantity值的记录,以便为每个记录创建三个观察值?()
A.data work.sales;infile unitsold;input ID $;do week=1to 3;input Quantity :comma.;output;end;run;B.data work.sales;infile unitsold;input ID $@@;do week=1to 3;input Quantity :comma.;output;end;run;C.data work.sales;infile unitsold;input ID $@;do week=1to 3;input Quantity :comma.;output;end;run;D.data work.sales;infile unitsold;input ID $@;do week=1to 3;input Quantity :comma.@;output;end;run;