forward_aic <- step (1m (mpg 1, data = mtcars), direction = "forward", scope formula (fit.full), k= 2, trace= 0) In the command above, what does k mean?
forward_aic <- step (1m (mpg 1, data = mtcars), direction = "forward", scope formula (fit.full), k= 2, trace= 0) In the command above, what does k mean?
Holt Mcdougal Larson Pre-algebra: Student Edition 2012
1st Edition
ISBN:9780547587776
Author:HOLT MCDOUGAL
Publisher:HOLT MCDOUGAL
Chapter11: Data Analysis And Probability
Section11.3: Using Data Displays
Problem 1E
Related questions
Question
![A statistician is employed by a car industry. They wish to establish the relationship between a set of
predictors and an outcome variable, which is mpg (miles per gallon) in this case. The original dataset
is a data frame of 32 observations and 11 variables. Below is a snippet of the dataset.
4
Mazda RX4
Mazda RX4 Wag
Datsun 710
mpg cyl disp hp drat
wt qsec vs am gear carb
6 160.0 110 3.90 2.620 16.46 01
6 160.0 110 3.90 2.875 17.02 01
4 108.0 93 3.85 2.320 18.61 1
4
4
1
4
1
Hornet 4 Drive
3
1
3
2
Hornet Sportabout
Valiant
0
3 1
21.0
21.0
22.8
21.4 6 258.0 110 3.08 3.215 19.44 1 0
18.7 8 360.0 175 3.15 3.440 17.02 0 0
18.1 6 225.0 105 2.76 3.460 20.22 1
14.3 8 360.0 245 3.21 3.570 15.84 0
24.4 4 146.7 62 3.69 3.190 20.00 1
22.8 4 140.8 95 3.92 3.150 22.90
19.2
17.8
16.4
Duster 360
3
4
Merc 240D
Merc 230
1
4
2
6 167.6 123 3.92 3.440 18.30
1
4
4
Merc 280
Merc 280C
6 167.6 123
4
3.92 3.440 18.90 1
3.07 4.070 17.40 0
Merc 450SE
8 275.8 180
0
3
Merc 450SL
17.3
8 275.8 180
3.07 3.730 17.60 0
0
Merc 450SLC
15.2 8 275.8 180 3.07 3.780 18.00 0
0
3
In the R output below, mpg is miles per gallon, wt is weight, cyl is number of
cylinders, hp is gross horsepower.
Call:
1m (formula mpg wt cyl hp, data
mtcars)
Coefficients:
(Intercept)
wt
cyl
38.75179
-3.16697
-0.94162
-0.01804
Call:
1m (formula mpg wt + cyl, data = mtcars)
Coefficients:
wt
(Intercept)
39.686
cyl
-3.191
-1.508
By looking at the R output above, state which case corresponds to the AIC which
to the BIC. Explain your reasoning.
Write down the model that corresponds to the R command below.
forward_aic <- step(1m (mpg 1, data = mtcars), direction = "forward",
scope = formula (fit.full), k = 2, trace = 0)
In the command above, what does k mean?
hp
oooo0
ooo
4
3](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F2d8af8c2-32d8-4482-a819-a5aecd2be165%2F1aac8156-d8d5-4753-b313-50cccb2e0112%2Fwf30av5_processed.png&w=3840&q=75)
Transcribed Image Text:A statistician is employed by a car industry. They wish to establish the relationship between a set of
predictors and an outcome variable, which is mpg (miles per gallon) in this case. The original dataset
is a data frame of 32 observations and 11 variables. Below is a snippet of the dataset.
4
Mazda RX4
Mazda RX4 Wag
Datsun 710
mpg cyl disp hp drat
wt qsec vs am gear carb
6 160.0 110 3.90 2.620 16.46 01
6 160.0 110 3.90 2.875 17.02 01
4 108.0 93 3.85 2.320 18.61 1
4
4
1
4
1
Hornet 4 Drive
3
1
3
2
Hornet Sportabout
Valiant
0
3 1
21.0
21.0
22.8
21.4 6 258.0 110 3.08 3.215 19.44 1 0
18.7 8 360.0 175 3.15 3.440 17.02 0 0
18.1 6 225.0 105 2.76 3.460 20.22 1
14.3 8 360.0 245 3.21 3.570 15.84 0
24.4 4 146.7 62 3.69 3.190 20.00 1
22.8 4 140.8 95 3.92 3.150 22.90
19.2
17.8
16.4
Duster 360
3
4
Merc 240D
Merc 230
1
4
2
6 167.6 123 3.92 3.440 18.30
1
4
4
Merc 280
Merc 280C
6 167.6 123
4
3.92 3.440 18.90 1
3.07 4.070 17.40 0
Merc 450SE
8 275.8 180
0
3
Merc 450SL
17.3
8 275.8 180
3.07 3.730 17.60 0
0
Merc 450SLC
15.2 8 275.8 180 3.07 3.780 18.00 0
0
3
In the R output below, mpg is miles per gallon, wt is weight, cyl is number of
cylinders, hp is gross horsepower.
Call:
1m (formula mpg wt cyl hp, data
mtcars)
Coefficients:
(Intercept)
wt
cyl
38.75179
-3.16697
-0.94162
-0.01804
Call:
1m (formula mpg wt + cyl, data = mtcars)
Coefficients:
wt
(Intercept)
39.686
cyl
-3.191
-1.508
By looking at the R output above, state which case corresponds to the AIC which
to the BIC. Explain your reasoning.
Write down the model that corresponds to the R command below.
forward_aic <- step(1m (mpg 1, data = mtcars), direction = "forward",
scope = formula (fit.full), k = 2, trace = 0)
In the command above, what does k mean?
hp
oooo0
ooo
4
3
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Holt Mcdougal Larson Pre-algebra: Student Edition…](https://www.bartleby.com/isbn_cover_images/9780547587776/9780547587776_smallCoverImage.jpg)
Holt Mcdougal Larson Pre-algebra: Student Edition…
Algebra
ISBN:
9780547587776
Author:
HOLT MCDOUGAL
Publisher:
HOLT MCDOUGAL
![Glencoe Algebra 1, Student Edition, 9780079039897…](https://www.bartleby.com/isbn_cover_images/9780079039897/9780079039897_smallCoverImage.jpg)
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
![Big Ideas Math A Bridge To Success Algebra 1: Stu…](https://www.bartleby.com/isbn_cover_images/9781680331141/9781680331141_smallCoverImage.jpg)
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Algebra
ISBN:
9781680331141
Author:
HOUGHTON MIFFLIN HARCOURT
Publisher:
Houghton Mifflin Harcourt
![Holt Mcdougal Larson Pre-algebra: Student Edition…](https://www.bartleby.com/isbn_cover_images/9780547587776/9780547587776_smallCoverImage.jpg)
Holt Mcdougal Larson Pre-algebra: Student Edition…
Algebra
ISBN:
9780547587776
Author:
HOLT MCDOUGAL
Publisher:
HOLT MCDOUGAL
![Glencoe Algebra 1, Student Edition, 9780079039897…](https://www.bartleby.com/isbn_cover_images/9780079039897/9780079039897_smallCoverImage.jpg)
Glencoe Algebra 1, Student Edition, 9780079039897…
Algebra
ISBN:
9780079039897
Author:
Carter
Publisher:
McGraw Hill
![Big Ideas Math A Bridge To Success Algebra 1: Stu…](https://www.bartleby.com/isbn_cover_images/9781680331141/9781680331141_smallCoverImage.jpg)
Big Ideas Math A Bridge To Success Algebra 1: Stu…
Algebra
ISBN:
9781680331141
Author:
HOUGHTON MIFFLIN HARCOURT
Publisher:
Houghton Mifflin Harcourt
![Functions and Change: A Modeling Approach to Coll…](https://www.bartleby.com/isbn_cover_images/9781337111348/9781337111348_smallCoverImage.gif)
Functions and Change: A Modeling Approach to Coll…
Algebra
ISBN:
9781337111348
Author:
Bruce Crauder, Benny Evans, Alan Noell
Publisher:
Cengage Learning
![College Algebra (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781305652231/9781305652231_smallCoverImage.gif)
College Algebra (MindTap Course List)
Algebra
ISBN:
9781305652231
Author:
R. David Gustafson, Jeff Hughes
Publisher:
Cengage Learning