Learn R Programming

R330 (version 1.0)

ad.df: Advertising data

Description

A data set which looks at the relationship between the sales and the expenditure on sales over 36 months

Usage

data(ad.df)

Arguments

Format

A data frame with 35 observations on the following 3 variables:
sales
monthly sales
spend
amount spent on advertising this month
prev.spend
amount spent on advertising in the previous month

Details

We lose one observation when prev.spend was created

Examples

Run this code
data(ad.df)
advert.lm<-lm(sales~spend+prev.spend,data=ad.df)

Run the code above in your browser using DataLab