Question: The program data vector in a SAS data step has variables with values as follows: Code = VLC Size = M V1 = 2 V2
The program data vector in a SAS data step has variables with values as follows:
Code = ‘VLC’
Size = ‘M’
V1 = 2 V2 = 3 V3 = 7 V4 = .
Determine the results of the following SAS expressions:
a. (V1 + V2 - V3)/3
b. V3 - V2/V1
c. V1*V2 - V3
d. V2*V3/V1
e. V1**2 + V2**2
f. Code = ‘VLC’
g. Code = ‘VLC’ & size = ‘M’
h. Code = ‘VLC’|size = ‘M’
i. Code = ‘VLC’ & V4^=.
j. (V3=.) + (V2=3)
k. V1 + V2 + V3 ˆ = 12 l. Code = ‘VLC’ | (Size = ‘M’ & V1 = 3)
m. 3 < V2 < 5 Hint: Recall that logical expressions evaluate to numeric values 1 (for
‘TRUE’) or 0 (for ‘FALSE’).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
