Question: I am trying to write a code in R and have come to this question I cannot figure out what I am doing wrong Explore

I am trying to write a code in R and have come to this question I cannot figure out what I am doing wrong
Explore the relationship between the number of applicants (App) and the number of acceptances (Accept).
Use lm to obtain a best fit linear model for Accept (y-variable) based on App (x-variable).
# Obtain the best fit linear model for Accept (y-variable) based on App (x-variable)
lm_model <- lm(Accept ~ App, data = College)
# Correlation coefficient
correlation_coefficient <- cor(College$Accept, College$App)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!