Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using R, the dataset sydhob.txt is included below - please load it onto R Studio (software required for this question). The full question is included

Using R, the dataset "sydhob.txt" is included below - please load it onto R Studio (software required for this question). The full question is included in the attached image below. Also please include full explanation and working out as required, thank you.

Morna 1948 4 5 1 6061

WaltzingMatilda 1949 5 10 33 7833

MargaretRintoul 1950 5 5 28 7528

MargaretRintoul 1951 4 2 29 5909

Nocturne 1952 6 2 34 8794

Solveig 1953 5 7 12 7632

KurrewaIV 1954 5 6 9 7569

Even 1955 4 18 13 6853

KurrewaIV 1956 4 4 31 6031

KurrewaIV 1957 3 18 30 5430

Solo 1958 5 2 32 7352

Solo 1959 4 13 33 6573

KurrewaIV 1960 4 8 11 6251

Astor 1961 4 4 42 6042

Ondine 1962 3 3 46 4546

Astor 1963 4 10 53 6413

Astor 1964 3 20 5 5525

Stormvogel 1965 3 20 30 3930

Fidelis 1966 4 8 39 6279

PenDuickIII 1967 4 4 10 6010

OndineII 1968 4 30 20 7580

Crusade 1969 3 15 7 5227

Buccaneer 1970 3 14 6 5166

Kialoa 1971 3 12 46 5086

AmericanEagle 1972 3 4 42 4602

Helsal 1973 3 1 32 4412

OndineIII 1974 3 13 51 5151

Kialoa 1975 2 14 36 3756

Ballyhoo 1976 3 7 59 4799

KialoaII 1977 3 10 14 4934

Apollo 1978 4 2 23 5903

BumblebeeIV 1979 3 1 45 4425

NewZealand 1980 2 18 45 4005

Vengeance 1981 3 22 30 5670

CondorofBermuda 1982 3 0 59 4379

Condor 1983 3 0 50 4370

NewZealand 1984 3 11 21 5001

Apollo 1985 3 4 32 4592

CondorofBermuda 1986 2 23 26 4286

Sovereign 1987 2 21 58 4198

Ragamuffin 1988 3 15 29 5249

Drumbeat 1989 3 6 21 4701

Ragamuffin 1990 2 21 5 4145

Brindabella 1991 3 1 14 4394

NewZealandEndeavour 1992 2 19 19 4039

NinetySeven 1993 4 0 54 5814

Tasmania 1994 2 17 48 3948

Sayonara 1995 3 0 53 4373.6

MorningGlory 1996 2 14 7 3727.2

Brindabella 1997 2 23 37 4297.2

Note: The first column in the data tells us "Yacht", second is "Years", third is "Days", fourth is "Hour", fifth is "Minutes" and last is "Time".

image text in transcribed
2. The data set sydhob contains winning times from 1945 to 1993 for the Sydney to Hobart Yacht race as they appeared in the Sydney Morning Herald on 24 December 1994, plus the winning times for 1994 to 199?; The variables in the data frame are Yacht (the name of the winning yacht), 1fear (the year of the race}, Days (the days unit of the winning time} Hours (the hours unit of the winning time) Minutes (the minutes unit of the winning time) and Time (the winning time in minutes}. Do a scatterplot of log(Ti.me}. Fit a cubic regression spline to (log (Time) as the response and 1fear as the predictor}. For the knot points, use u. knots which cut the ordered predictor values into n. + 1 bins with equal numbers of points in each bin (use the R function quantile to obtain these values, reading the help for this function to learn how to use it). In setting up the design matrix for the linear model you must t, you should use the function pmax (again read the R help to learn how to use it). You may choose any value of n that you consider appropriate. Snperimpose a line plot of the tted values for the cubic regression spline against 1fear on a scatterplot of the data. Do you think you are overttingfundertting the data with the chosen collection of knots? Use variable selection methods for the linear model to decide on the most appropriate value of n

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mathematics Concepts With Applications

Authors: Charles P McKeague

1st Edition

1630983136, 9781630983130

More Books

Students also viewed these Mathematics questions

Question

Define social neuroscience.

Answered: 1 week ago

Question

2. Outline the functions of nonverbal communication

Answered: 1 week ago