Using data from R (a) difference between fit of the models what evidence for the significance of the interaction term ? (b) calculate average claim size, with no legal rep and operational time is 24 months (c) sketch plot of log of average claims against operation time x1 is operational time x2 is binary variable (0 - no legal, 1-legal )
Using data from R (a) difference between fit of the models what evidence for the significance of the interaction term ? (b) calculate average claim size, with no legal rep and operational time is 24 months (c) sketch plot of log of average claims against operation time x1 is operational time x2 is binary variable (0 - no legal, 1-legal )
MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
Related questions
Question
Using data from R
(a) difference between fit of the models what evidence for the significance of the interaction term ?
(b) calculate average claim size, with no legal rep and operational time is 24 months
(c) sketch plot of log of average claims against operation time
x1 is operational time
x2 is binary variable (0 - no legal, 1-legal )
![Question 3 continued
Coefficients:
Estimate Std. Error t value Pr (>It|)
<2e-16 ***
(Intercept) 8.3584971 0.0244106 342.41
op_time
legrep
0.0350800 0.0003872 90.59
0.2374495 0.0218372. 10.87
<2e-16 ***
<2e-16 ***
Signif. codes: 0 **** 0.001 ***0.01 * 0.05 . 0.1 " 1
(Dispersion parameter for Gamma family taken to be 2.422671)
Null deviance: 44010 on 22035 degrees of freedom
Residual deviance: 25500 on 22033 degrees of freedom
AIC: 491031
Summary of model with both factors, operational time (op_time) and legal
representation (legrep).
Coefficients:
Estimate Std. Error t value Pr (>[t])
(Intercept)
op time
legrep
op time:legrep -0.0049978 0.0008002 -6.246 4.29e-10 ***
8.2118447 0.0329095 249.528
< 2e-16 ***
< 2e-16 ***
0.4667863 0.0424613 10.993 < 2e-16 ***
0.0383149 0.0006311 60.707
Signif. codes: 0 **** 0.001 **' 0.01 * 0.05 .' 0.1 '' 1
(Dispersion parameter for Gamma family taken to be 2.432031)
Null deviance: 44010
Residual deviance: 25412
on 22035 degrees of freedom
on 22032 degrees of freedom
AIC: 490944
Summary of model with both factors and interaction term.
6G6Z3005_2122_B2](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F337d1ee6-20cb-4a4a-adfd-dec33ab7472b%2F58015697-e5c8-4f41-82f9-5d370662f1b6%2Fshrrrgj.jpeg&w=3840&q=75)
Transcribed Image Text:Question 3 continued
Coefficients:
Estimate Std. Error t value Pr (>It|)
<2e-16 ***
(Intercept) 8.3584971 0.0244106 342.41
op_time
legrep
0.0350800 0.0003872 90.59
0.2374495 0.0218372. 10.87
<2e-16 ***
<2e-16 ***
Signif. codes: 0 **** 0.001 ***0.01 * 0.05 . 0.1 " 1
(Dispersion parameter for Gamma family taken to be 2.422671)
Null deviance: 44010 on 22035 degrees of freedom
Residual deviance: 25500 on 22033 degrees of freedom
AIC: 491031
Summary of model with both factors, operational time (op_time) and legal
representation (legrep).
Coefficients:
Estimate Std. Error t value Pr (>[t])
(Intercept)
op time
legrep
op time:legrep -0.0049978 0.0008002 -6.246 4.29e-10 ***
8.2118447 0.0329095 249.528
< 2e-16 ***
< 2e-16 ***
0.4667863 0.0424613 10.993 < 2e-16 ***
0.0383149 0.0006311 60.707
Signif. codes: 0 **** 0.001 **' 0.01 * 0.05 .' 0.1 '' 1
(Dispersion parameter for Gamma family taken to be 2.432031)
Null deviance: 44010
Residual deviance: 25412
on 22035 degrees of freedom
on 22032 degrees of freedom
AIC: 490944
Summary of model with both factors and interaction term.
6G6Z3005_2122_B2
Expert Solution

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 with 4 images

Recommended textbooks for you

MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc

Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning

Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning

MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc

Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning

Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning

Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON

The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman

Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman