soil | R Documentation |
Data used in Bondell and Reich's paper on soil characteristics used as predictors of forest diversity.
data("soil")
A data frame with 20 observations on the following 16 variables.
BaseSat
% Base Saturation.
SumCation
Sum Cations (sums of cations like calcium, magnesium, potassium and sodium).
CECbuffer
CEC.
Ca
Calcium.
Mg
Magnesium.
K
Potassium.
Na
Sodium.
P
Phosphorus.
Cu
Copper.
Zn
Zinc.
Mn
Manganese.
HumicMatter
Humic Matter.
Density
Density.
pH
pH.
ExchAc
Exchangeable Acidity.
Diversity
Forest diversity (dependent variable).
This dataset is originally used by Bondell and Reich (2008).
Bondell, H.D. and Reich. B.J. (2008). Simultaneous regression shrinkage, variable selection, and supervised clustering of predictors with OSCAR. Biometrics, 64 (1), 115–23, doi: https://doi.org/10.1111/j.1541-0420.2007.00843.x.
head(soil, n=5)
y = soil[,16]
x = soil[,-16]
x = cbind(rep(1, length(y)), x) # the design matrix has to have the intercept in the first column
multicollinearity(y, x)
multicollinearity(y, x[,-3]) # eliminating the problematic variable (SumCation)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.