單項(xiàng)選擇題變量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);


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題下列哪項(xiàng)時(shí)對Var1,Var2,Var3,Var4求均值?()

A.mean(var1,var4)
B.mean(var1-var4)
C.mean(of var1,var4)
D.mean(of var1-var4)

2.單項(xiàng)選擇題

哪個SAS程序讀取ID的值并保存每個Quantity值的記錄,以便為每個記錄創(chuàng)建三個觀察值?()

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;

3.單項(xiàng)選擇題哪個指針控件用于按順序讀取多個記錄?()

A.@n
B.+n
C./
D.all of the above

5.單項(xiàng)選擇題

下面哪一段代碼可以生成下述結(jié)果?()

A.data _null_;set work.scores;file ’c:\data\teamdat’dlm=’,’;put name highscore team;run;
B.data _null_;set work.scores;file ’c:\data\teamdat’dlm=’’;put name highscore team;run;
C.data _null_;set work.scores;file ’c:\data\teamdat’dsd;put name highscore team;run;
D.data _null_;set work.scores;file ’c:\data\teamdat’;put name highscore team;run;

最新試題

使用proc univariate進(jìn)行對某變量正態(tài)性檢驗(yàn)時(shí),用哪個選項(xiàng)可以擬合出該變量的分布曲線?()

題型:單項(xiàng)選擇題

主成分分析中,在確定主成分個數(shù)時(shí),通常選擇的主成分累積變異比例應(yīng)達(dá)到多少才是足夠的?()

題型:單項(xiàng)選擇題

下列哪個是隨機(jī)游走模型?()

題型:單項(xiàng)選擇題

在K均值聚類proc fastclus 中,可用哪個選項(xiàng)來限制聚類個數(shù)?()

題型:單項(xiàng)選擇題

哪個SAS程序讀取ID的值并保存每個Quantity值的記錄,以便為每個記錄創(chuàng)建三個觀察值?()

題型:單項(xiàng)選擇題

下列關(guān)于時(shí)間序列分析的描述正確的是:()

題型:單項(xiàng)選擇題

欲研究高血壓(HBP,1=患病、0=未患病)與年齡(age)、性別(gender)、體質(zhì)指數(shù)(BMI)、日攝入鈉量(NA)的關(guān)系。將年齡分組處理,以及根據(jù)我國體質(zhì)指數(shù)標(biāo)準(zhǔn)劃分體型后,用logistic回歸對高血壓與所有自變量建模,下面代碼哪個是正確的?()

題型:單項(xiàng)選擇題

下列關(guān)于PROC GLM的說法錯誤的是()。

題型:單項(xiàng)選擇題

當(dāng)你運(yùn)行一段程序后,日志報(bào)了三條error,請問自動變量_error_的取值?()

題型:單項(xiàng)選擇題

哪個DO語句不會處理下面顯示的factors數(shù)組中的所有元素?cái)?shù)組因子{*}年齡身高體重?()

題型:單項(xiàng)選擇題