Lily K.

asked • 02/02/24

Provided code and answer in r studio

The following data contains the Price, Age and Miles of 25 mustang cars.

• Price - Asking price (in $1,000’s)

• Miles - Mileage on the car (in 1,000’s)

• Age - Age of the car (in years)

#Run this code to install Lock5Data package and the MustangPrice dataset

install.packages("Lock5Data")

library("Lock5Data")

data(MustangPrice, package="Lock5Data")

attach(MustangPrice)

head(MustangPrice)

a. Regression Price against Miles using R. Report your results.

b. What changes and how does it change if I change Miles (in 1,000’s) to km (not in 1,000’s km)?

c. Create a new variable that has miles in km (not in 1,000’s) and rerun the regression model. Does either

the t-value or the p-value change? Explain.

d. What changes and how does it change if I change Price to euros (not in 1,000’s)? Use the exchange rate

where 1 US dollar equals 0.92 euro.

e. Create a new variable that has miles in km (not in 1,000’s) and rerun the regression model. Does either

the t-value or the p-value change? Explain.

f. What changes and how does it change if I make both changes listed above?

g. Rerun the model with both changes. Does either the t-value or the p-value change this time? Explain.


Marla G.

Here's a link to a website that should help you with anything you need to do in R: https://libguides.chapman.edu/R/welcome I can't do your homework for you, but this link should be helpful. Good Luck!
Report

09/22/24

1 Expert Answer

By:

Benjamin C. answered • 04/29/25

Tutor
New to Wyzant

Experienced Tutor Specializing in Applied Statistics

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.