the marketing dataset contains \(8\) features and \(40\) records as 40 days that report how much we spent, how many clicks, impressions and transactions we got, whether or not a display campaign was running, as well as our revenue, click-through-rate and conversion rate. the target feature is revenue and the remaining 7 variables are predictors.
data(marketing)the marketing dataset, as a data frame, contains \(40\) rows and \(8\) columns (variables/features). the \(8\) variables are:
spend: daily send of money on PPC (apy-per-click).
clicks: number of clicks on for that ad.
impressions: amount of impressions per day.
display: whether or not a display campaign was running.
transactions: number of transactions per day.
click.rate: click-through-rate.
conversion.rate: conversion rate.
revenue: daily revenue.
For more information related to the dataset see:
https://github.com/chrisBow/marketing-regression-part-one
Reza Mohammadi (2025). Data Science Foundations and Machine Learning with R: From Data to Decisions. https://book-data-science-r.netlify.app.
bank,
churn,
churnCredit,
churnTel,
adult,
risk,
cereal,
advertising,
drug,
house,
housePrice,
redWines,
whiteWines,
insurance,
caravan,
fertilizer,
corona
data(marketing)
str(marketing)
Run the code above in your browser using DataLab