BaşlayınÜcretsiz Başlayın

Logistic plot

Logistic regression models assess a binomial categorical dependent variable.

A company has gathered data on whether individuals clicked on an ad, Click, and wants to know about the amount of time spent on the site, TimeSearching in relation to clicking the ad. To describe the results of the model to the company's board, who is interested in whether the ad will be clicked given 43 minutes are spent on the site each day, create a scatter plot with relevant visual descriptors.

The webdata dataset and ggplot2 package have been loaded for you.

Bu egzersiz

A/B Testing in R

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Store the daily time spent on the site that was used to determine the likelihood of clicking the ad, 43, as TimeSearching.
  • Create the scatter plot with the logistic regression line and prediction time indicated with a black line.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Set the value to predict
TimeSearching <- ___

# Plot the data
ggplot(webdata, aes(x = ___, y = ___)) + 
  geom_point() +
  geom_smooth(method = ___,
             method.args = ___)) +
  geom_vline(xintercept = ___) 
Kodu Düzenle ve Çalıştır