data voter;
input Age Party : $1. (Ques1-Ques4)($1. + 1);
datalines;
23 D 1 1 2 2
45 R 5 5 4 1
67 D 2 4 3 3
39 R 4 4 4 4
19 D 2 1 2 1
75 D 3 3 2 3
57 R 4 3 4 4
;
Idont understand what the (Ques1-Ques4)($1. + 1) means.
I have seen (Ques1-Ques4)(4*$1.), but what is
(Ques1-Ques4)($1. + 1)?
Appreciate all help
Thanks
Answer Posted / tsk
You are read data for a 4 question poll
(Q1-Q4) is an arrary ($1. is the format of each element
+1) tells that space b/n the each and every variable called
q1 ,q2 ,q3 ,q4.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the use of function Proc summary?
what is star schema? : Sas-di
What is the role of sas grid administrator? : sas-grid-administration
Explain the purpose of retain statement.
What is the use of divide function?
What are the different operating system platforms in which we can use sas? : sas-grid-administration
What system options would you use to help debug a macro? : sas-macro
what is sas metadata repository? : Sas-bi
How do dates work in SAS data?
Explain substr function?
Which command is used to perform sorting in sas program?
what is sas application server, database server, sas olap server and sas metadata server? : Sas-di
What was the last computer book you purchased? Why?
For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration
hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?