Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

wheat

The wheat dataset


Description

The wheat dataset contains 100 wheat samples with specified protein and moisture content, published by J. Kalivas. Samples were measured by diffuse reflectance as log (I/R) from 1100 to 2500 nm (701 data points) in 2 nm intervals.

Usage

data(wheat)

References

Kalivas, J. H. (1997). Two data sets of near infrared spectra. Chemometrics and Intelligent Laboratory Systems, 37(2), 255–259.

Examples

data("wheat")

X <- wheat$x
y <- wheat$protein
n <- nrow(wheat$x)

set.seed(1001)
samp.idx <- sample(1L:n, round(n * 0.7))
X.cal <- X[samp.idx, ]
y.cal <- y[samp.idx]
X.test <- X[-samp.idx, ]
y.test <- y[-samp.idx]

OHPL

Ordered Homogeneity Pursuit Lasso for Group Variable Selection

v1.4
GPL-3 | file LICENSE
Authors
You-Wu Lin [aut], Nan Xiao [cre] (<https://orcid.org/0000-0002-0250-5673>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.