ad.df: Advertising data

Description Usage Format Details Examples

Description

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

Usage

1

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

1
2
data(ad.df)
advert.lm<-lm(sales~spend+prev.spend,data=ad.df)

Example output

Loading required package: s20x
Loading required package: leaps
Loading required package: rgl
Loading required package: lattice
Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE 
3: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 

R330 documentation built on May 2, 2019, 2:12 p.m.