Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

in SAS, compute 4 variables using IF and ELSE IF statements: • FGProp, the propo

ID: 3370036 • Letter: I

Question

in SAS, compute 4 variables using IF and ELSE IF statements:

• FGProp, the proportion of field goals made

• FTProp, the proportion of free throws made

• ThreeProp, the proportion of three point shots made

• PPG, points per game played

Now, print the data portion of players with 0.500 for any of the 4 new variables created.

i don't understand how to compute these and with if statements

Variable Name Description playerName tmID GP GS minutes points ofeboundS dRebounds assists steals blocks PF fgAttempted fgMade ftAttempted ftMade threeAttempted three point shots attempted hreeMade name of the player team ID number of games played number of games the player was in the starting lineup number of minutes played that season points scored that season offensive rebounds defensive rebounds number of assists number of steals number of blocks number of personal fouls committed by the player field goals attempted field goals made field goals attempted field goals made three point shots made

Explanation / Answer

Before starting, let's assume that data set name is game_details

1.) FGProp

DATA game_details

FGProp = .;

IF fgAttempted > 0 THEN FGProp = (fgMade/fgAttempted) * 100

ELSE FGProp = 0

2.) FTPROP

DATA game_details

FTProp= .;

IF FTProp > 0 THEN FTProp = (ftMade/ftAttempted) * 100

ELSE FTProp = 0

3.) threeAttempted

DATA game_details

threePOP = .;

IF threeAttempted > 0 THEN threePOP = (threeMade/threeAttempted) * 100

ELSE threePOP = 0

Similarly, you can calculate PPG also.