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 / naveen
In this example you have to read the data after the party
variable specifying the numeric variables (Ques1-Ques4).
This way is possible only for numeric variables. $1.
specifying the column range(width of the data value) and +1
refers to eliminate the non required data.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the command used to find missing values?
it will become easy if uuu provide website linkssss and list of consultanciessssss
How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?
How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?
How do you delete duplicate observations in sas?
what is sas olap server? : Sas-di
What are the default statistics that proc means produce?
what is SAS OPTIMIZATION?
What is Linear Regression?
What does the RUN statement do?
How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?
What are the data types does SAS contain?
what is snowflake schema? : Sas-di
Differentiate between proc means and proc summary.
What commands are used in the case of including or excluding any specific variables in the data set?