Question: # 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
