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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Categorical Data Analysis Questions!