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
describe about physical data integration? : Sas-di
If a variable contains letters or special characters, can it be numeric data type?
how does sas handle missing values in procs? : Sas programming
what is sas metadata server? : Sas-di
For what purpose would you use the RETAIN statement?
what has been your most common programming mistake? : Sas programming
How to specify variables to be processed by the freq procedure?
Explain append procedure?
explain about sas business intelligence? : Sas-bi
What is the function of Stop statement in a SAS Program?
what is change analysis in sas di ? : Sas-di
State the difference between INFORMAT and FORMAT ?
Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?
What does P-value signify about the statistical data?
Explain what is SAS informats?