# Stat420_hw7

This preview shows page 1. Sign up to view the full content.

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: b) Fit a quadratic model. Overlay the least-squares (quadratic) regression line; does it seem to provide a better ﬁt? (c) Fit a cubic model. Overlay the least-squares (cubic) regression line; which model (linear, quadratic, or cubic) do you choose and why? Exercise 2 A survey was conducted to study teenage gambling in Britain. (Ide-Smith & Lea, 1988, Journal of Gambling Behavior, 4, 110–118) The data is stored in the data frame teengamb (library faraway). This dataframe contains the following columns: sex status income verbal gamble 0=male, 1=female Socioeconomic status score based on parents￿ occupation in pounds per week verbal score in words out of 12 correctly deﬁned expenditure on gambling in pounds per year We will try to model gamble as the response and the other variables as predictors. STAT 420 Spring 2014: HW 7 1 University of Illinois > library(faraway) > data(teengamb) (a) Plot gamble vs status, gamble vs income, and gamble vs verbal, using diﬀerent symbols for m...
View Full Document

## This homework help was uploaded on 04/03/2014 for the course STAT 420 taught by Professor Stepanov during the Spring '08 term at University of Illinois, Urbana Champaign.

Ask a homework question - tutors are online