The accompanying data set contains three variables, x 1 , x 2 , and x 3 .

Question:

The accompanying data set contains three variables, x1, x2, and x3

a. Create a new variable called “Difference” that contains the difference between the values of x1 and x2 for each observation (i.e., x2 − x1). What is the average difference? 

b. Create a new variable called “PercentDifference” that contains the percent difference between the values of x1 and x2 for each observation (i.e., (x2 − x1)/x1). What is the average percent difference? 

c. Create a new variable called “Log” that contains the natural logarithms for x3. Bin the logarithm values into five equal-interval groups. Label the groups using numbers 1 (lowest values) to 5 (highest values). How many observations are in group 2?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Business Analytics Communicating With Numbers

ISBN: 9781260785005

1st Edition

Authors: Sanjiv Jaggia, Alison Kelly, Kevin Lertwachara, Leida Chen

Question Posted: