| Carseats | R Documentation |
A simulated data set containing sales of child car seats at 400 different stores.
Carseats
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, Good
and Medium indicating the quality of the shelving location
for the car seats at each site
AgeAverage age of the local population
EducationEducation level at each location
UrbanA factor with levels No and Yes to
indicate whether the store is in an urban or rural location
USA factor with levels No and Yes to
indicate whether the store is in the US or not
Simulated data
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
summary(Carseats) lm.fit=lm(Sales~Advertising+Price,data=Carseats)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.