注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
题目内容:
You are given a CSV (comma-separated values) file called Political.csv containing state, political party, and age. A listing of the file Political.txt is shown here:. 1point3acres
"NJ", Ind, 55.google и
"CO", DEM, 45
"NY", REP, 23
"FL", DEM, 66
"NJ", REP, 34
a. Write a SAS program to create a temporary SAS data set called Vote. Use the variable names State, Party, and Age. Age should be stored as a numeric variable; State and Party should be stored as character variables.. ----
b. Include a procedure to list the observations in this data set.
c. Include a procedure to compute frequencies for Party.
是不是因为这个数据有符号,所以我用常规做法不对?
DATA Prob315;
INFILE "/home/u62262851/BAN130NBB/political.csv";
INPUT State $ PoliticalParty $ Age;. 1point 3 acres
RUN;
PROC PRINT DATA=Prob315;
RUN;
这是我做的,然后出来完全不对。
谢谢 |