Answered step by step
Verified Expert Solution
Link Copied!

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 6- Let's practice making predictions of the response variable.
# CG Q6a # We'll make predictions using all 3 competing models for
####### a wet day that is 25 degrees, has 50% humidity and windspeed of 5.
####### Make a data frame of these values and call it newdata.
newdata-data.frame(weathersit=2,temp=25,hum=50,windspeed=5)
# CG Q6b # Now use ridefit model to predict ride count using
####### the predict() function with your newdata object.
predict(ridefit,newdata)
# CG Q6c # Now use the logridefit model to predict log ride count using
####### the predict() function with your newdata object.
predict(logridefit,newdata=newdata)
# CG Q6d # To put the prediction of the log ride count back onto the raw
####### ride count scale, wrap the line of code from Q6c in the exp()
####### function to "undo" the log transformation.
exp(predict(logridefit,newdata=newdata))
# CG Q6e # use the loglogfit model to predict log ride count using
####### the predict() function with your newdata object.
predict(loglogfit,newdata=bikes)
# CG Q6f # To put the prediction of the log ride count back onto the raw
####### ride count scale, wrap the line of code from Q6e in the exp()
####### function to "undo" the log transformation.
image text in transcribed

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

Step: 3

blur-text-image

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

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions

Question

consider how quantitative data can contribute to your research;

Answered: 1 week ago