Learn R Programming

rvif (version 3.0)

soil: Soil characteristics data

Description

Data used in Bondell and Reich's paper on soil characteristics used as predictors of forest diversity.

Usage

data("soil")

Arguments

Format

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).

Details

This dataset is originally used by Bondell and Reich (2008).

References

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.

Examples

Run this code
  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)

Run the code above in your browser using DataLab