Answered step by step
Verified Expert Solution
Question
1 Approved Answer
# Question 6 - Let's practice making predictions of the response variable. # CG Q 6 a # We'll make predictions using all 3 competing
# Question Let's practice making predictions of the response variable.
# CG Qa # We'll make predictions using all competing models for
####### a wet day that is degrees, has humidity and windspeed of
####### Make a data frame of these values and call it newdata.
newdatadata.frameweathersittemphumwindspeed
# CG Qb # Now use ridefit model to predict ride count using
####### the predict function with your newdata object.
predictridefitnewdata
# CG Qc # Now use the logridefit model to predict log ride count using
####### the predict function with your newdata object.
predictlogridefitnewdatanewdata
# CG Qd # To put the prediction of the log ride count back onto the raw
####### ride count scale, wrap the line of code from Qc in the exp
####### function to "undo" the log transformation.
exppredictlogridefitnewdatanewdata
# CG Qe # use the loglogfit model to predict log ride count using
####### the predict function with your newdata object.
predictloglogfitnewdatabikes
# CG Qf # To put the prediction of the log ride count back onto the raw
####### ride count scale, wrap the line of code from Qe in the exp
####### function to "undo" the log transformation.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started