USCrudes | R Documentation |
Cross-section data originating from 99 US oil field postings.
data("USCrudes")
A data frame containing 99 observations on 3 variables.
Crude prices (USD/barrel).
Gravity (degree API).
Sulphur (in %).
The data is from Baltagi (2002).
Baltagi, B.H. (2002). Econometrics, 3rd ed. Berlin, Springer.
Baltagi2002
data("USCrudes")
plot(price ~ gravity, data = USCrudes)
plot(price ~ sulphur, data = USCrudes)
fm <- lm(price ~ sulphur + gravity, data = USCrudes)
## 3D Visualization
library("scatterplot3d")
s3d <- scatterplot3d(USCrudes[, 3:1], pch = 16)
s3d$plane3d(fm, lty.box = "solid", col = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.