| Carseats | R Documentation |
Sales of Child Car Seats
Description
A simulated data set containing sales of child car seats at 400 different stores.
Usage
Carseats
Format
A data frame with 400 observations on the following 11 variables.
SalesUnit sales (in thousands) at each location
CompPricePrice charged by competitor at each location
IncomeCommunity income level (in thousands of dollars)
AdvertisingLocal advertising budget for company at each location (in thousands of dollars)
PopulationPopulation size in region (in thousands)
PricePrice company charges for car seats at each site
ShelveLocA factor with levels
Bad,GoodandMediumindicating the quality of the shelving location for the car seats at each siteAgeAverage age of the local population
EducationEducation level at each location
UrbanA factor with levels
NoandYesto indicate whether the store is in an urban or rural locationUSA factor with levels
NoandYesto indicate whether the store is in the US or not
Source
Simulated data
References
James, G., Witten, D., Hastie, T., and Tibshirani, R. (2013) An Introduction to Statistical Learning with applications in R, https://www.statlearning.com, Springer-Verlag, New York
Examples
summary(Carseats)
lm.fit=lm(Sales~Advertising+Price,data=Carseats)