Question

The data set mtcars in R has 11 variables with 32 observations. A data frame with 32 observations on 11 variables. [, 1] mp

0 0
Add a comment Improve this question Transcribed image text
Answer #1

R Code

dat.lm = lm( mpg ~ qsec+hp+cyl, data = mtcars)

summary(dat.lm)

Summary table
Estimate std. error t value Pr(>|t|)
Intercept 55.30540 9.03697 6.120 1.33e-06
qsec -0.89424 0.42755 -2.092 0.04567
hp -0.03552 0.01622 -2.190 0.03700
cyl -2.26960 0.54505 -4.164 0.00027

F-statistic = 32.29

Conclusion: Comparing p value for the F test to significance level (let's consider here 0.05) ,if p value is less than significance level then there sufficient science to prove that mpg is determine by qsec , hp and cyl variable.

Here p value is 3.135e-09 which is less than 0.05

there sufficient science to prove that mpg is determine by qsec , hp and cyl variable

Add a comment
Know the answer?
Add Answer to:
The data set "mtcars" in R has 11 variables with 32 observations. A data frame with...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • The Motor Trend Car Road Tests dataset mtcars, in faraway R package, was extracted from the...

    The Motor Trend Car Road Tests dataset mtcars, in faraway R package, was extracted from the 1974 Motor Trend US magazine, and comprises fuel consumption and 10 aspects of automobile design and performance for 32 automobiles (1973–74 models). The data frame has 32 observation on 11 (numeric) variables: mpg: Miles/(US) gallon; cyl: Number of cylinders; disp: Displacement (cu.in.); hp: Gross horsepower; drat: Rear axle ratio; wt: Weight (1000 lbs); qsec: 1/4 mile time; vs: Engine (0 = V-shaped, 1 =...

  • Calculate and interpret the z-scores using R. Using the mtcars dataset in R. To complete the...

    Calculate and interpret the z-scores using R. Using the mtcars dataset in R. To complete the assignment, follow the steps below: In the R console, type mtcars. This shows the whole dataset. Using R, calculate the mean and standard deviation for the variables: mpg, cyl, disp, hp, drat, wt, qsec, gear, carb. Using R, calculate the maximum values for the same variables in (b). Using R, calculate the z-scores for the maximum values. Interpret each z-score in (d). Is the...

  • 1. For each of the following regression models, write down the X matrix and 3 vector....

    1. For each of the following regression models, write down the X matrix and 3 vector. Assume in both cases that there are four observations (a) Y BoB1X1 + B2X1X2 (b) log Y Bo B1XiB2X2+ 2. For each of the following regression models, write down the X matrix and vector. Assume in both cases that there are five observations. (a) YB1XB2X2+BXE (b) VYBoB, X,a +2 log10 X2+E regression model never reduces R2, why 3. If adding predictor variables to a...

  • Please show full details steps for better understanding. Thank you. 6. The following data was extracted...

    Please show full details steps for better understanding. Thank you. 6. The following data was extracted from the 1974 Motor Trend US magazine, and com- prises fuel consumption , mpg (response) and 6 aspects of automobile design and per- formance (explanatory variables) for 32 automobiles (1973-74 models). mpg Miles/(US) gallon cyl Number of cylinders disp Displacement (cu.in.) hp Gross horsepower am Transmission (0 = automatic, 1 = manual) 50 150 250 mpg 10 25 200 cyl 00 00000 ood 00...

  • 6. The following data was extracted from the 1974 Motor Trend US magazine, and com- prises...

    6. The following data was extracted from the 1974 Motor Trend US magazine, and com- prises fuel consumption , mpg, (response) and 6 aspects of automobile design and per- formance (explanatory variables) for 32 automobiles (1973-74 models). mpg Miles/(US) gallon cyl Number of cylinders disp Displacement (cu.in.) hp Gross horsepower Transmission (0 = automatic, 1 = - manual) am 4 5 6 7 8 50 150 250 LULU O mpg P8 tagad 2008 10 25 QUE 000 cyl DOO DO...

  • Refer to this file when answering the following problem: Problem Data Set 1.xlsx

    Refer to this file when answering the following problem: Problem Data Set 1.xlsx The following data comes from Consumer Reports and was collected over a two year period It gives the Trip MPG over a 195 mile trip, the weight of the vehicle, engine displacement, Number of Cylinders, Horsepower, type of Transmission (0manual, 1-automatic), the number of gears and whether the cars was foreign (1) or domestic (0) .Build a model for predicting the Trip MPG based on the information in...

  • The data file Motor Trend is a random sample of 32 automobiles.   The miles per gallon ...

    The data file Motor Trend is a random sample of 32 automobiles.   The miles per gallon (mpg), weight (wt), horsepower (hp) and type of transmission (manual or automatic) is recorded for each sampled automobile. The file is available on Blackboard. Transmission is a categorical variable. Code the variable transmission so that it can be used in a regression model. Your coding should assign a 1 to manual transmission and a 0 to automatic. Develop a regression model with mpg as...

  • The Book of R (Question 20.2) Please answer using R code. Continue using the survey data...

    The Book of R (Question 20.2) Please answer using R code. Continue using the survey data frame from the package MASS for the next few exercises. The survey data set has a variable named Exer , a factor with k = 3 levels describing the amount of physical exercise time each student gets: none, some, or frequent. Obtain a count of the number of students in each category and produce side-by-side boxplots of student height split by exercise. Assuming independence...

  • . The data set below contains information about the gasoline mileage performance for 32 au- tomob...

    please answer the following using the r code provided . The data set below contains information about the gasoline mileage performance for 32 au- tomobiles. We are interested in developing a model to predict the miles per gallon () using related predictor variables. The variables in the study are Dependent variable: Miles per gallon (v) Independent variables: ri horsepower (ft-lb) ra: torque (ft-lb) r: horsepower+torque (ft-lb) rs: carburetor (barrels) (a) We first start by fitting a model using y and...

  • please peovide coding in R: with a data of 13 variables and 200 observations Using the...

    please peovide coding in R: with a data of 13 variables and 200 observations Using the variable CLASS, test at 5% significance level to test the claim that the proportions of Freshmen, Sophomores, Juniors, and Seniors are the same. 2. Repeat part (a) for the variable COLLEGE. RLM ENGLISH MATH COMP 21 16 25 839SSESSOR 8 F 17 F N H ABCD 1 SEX HSP GPA AGE CREDITS CLASS COLLEGE MAJOR RESIDENCY TYPE 2 Transfer Blochm Resident F 75 2.39...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT