Learn R Programming

CensMixReg (version 3.1)

concentration: Concentration levels

Description

The dataset corresponds to concentration levels of certain dissolved trace metals in freshwater streams across the Commonwealth of Virginia. This dataset consist of the concentration levels of the dissolved trace metals copper (Cu), lead (Pb), zinc (Zn), calcium (Ca) and magnesium (Mg) from 184 independent randomly selected sites in freshwater streams across Virginia. The Cu, Pb, and Zn concentrations are reported in ug/L of water, whereas Ca and Mg concentration are suitably reported in mg/L of water. Since the measurements are taken at different times, the presence of multiple limit of detection values are possible for each trace metal (VDEQ (2003)). The limit of detection but Cu and Pb is the 0.1ug/L, 1.0mg/L for Zn while Ca and Mg has limit of 0.5mg/L and 1.0mg/L. The percentage of left-censored values of 2.7% for (Ca), 4.9% for (Cu), 9.8% for (Mg) are small in comparison to 78.3% for (Pb) and 38.6% for (Zn), also note that 17.9% of the streams had 0 nondetected trace metals, 39.1% had 1, 37.0% had 2, 3.8% had 3, 1.1% had 4 and 1.1% had 5.

Usage

data(concentration)

Arguments

Format

concentration is a data frame with 184 cases (rows) with 5 variables (columns).

Details

For a complete description of data concentration levels see VDEQ (2003).

Examples

Run this code
# NOT RUN {
data(concentration)
p  <- 5
y  <- as.matrix(concentration[,1:p])
cc <- as.matrix(concentration[,(p+1):(2*p)])

fitN <- CensMmix(cc, y, nu=3, mu=NULL, Sigma = NULL,  pii = NULL, g = 2,
                  get.init = TRUE, criteria = TRUE, group = TRUE,
                  family = "Normal", error = 0.00001, iter.max = 350,
                  uni.Sigma = TRUE, obs.prob= FALSE, kmeans.param = NULL)

#Standard error (SE)
fitN$res$SE
# }

Run the code above in your browser using DataLab