diamond | R Documentation |
A data set on 48 diamond rings containing price in Singapore dollars and size of diamond in carats.
data(diamond)
A data frame with 48 observations on the following 2 variables.
A measurement of a diamond's size
Price in Singapore dollars
This data comes from a collection of the Journal of Statistics Education. The accompanying documentation says:
“Data presented in a newspaper advertisement suggest the use of simple linear regression to relate the prices of diamond rings to the weights of their diamond stones. The intercept of the resulting regression line is negative and significantly different from zero. This finding raises questions about an assumed pricing mechanism and motivates consideration of remedial actions.”
This comes from http://jse.amstat.org/datasets/diamond.txt. Data set is contributed by Singfat Chu.
data(diamond) plot(price ~ carat, diamond, pch=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.