Learn R Programming

robustbase (version 0.5-0-1)

NOxEmissions: NOx Air Pollution Data

Description

A typical medium sized environmental data set with hourly measurements of $NOx$ pollution content in the ambient air.

Usage

data(NOxEmissions)

Arguments

encoding

latin1

source

Ren� Locher (at ZHAW, Switzerland).

Details

The original data set had more observations, but with missing values. Here, all cases with missing values were omitted (na.omit(.)), and then only those were retained that belonged to days with at least 20 (fully) observed hourly measurements.

See Also

another NOx dataset, ambientNOxCH.

Examples

Run this code
data(NOxEmissions)
plot(LNOx ~ LNOxEm, data = NOxEmissions, cex = 0.25, col = "gray30")

## these take too much time --
 ## p = 340  ==> already Least Squares is not fast
 (lmNOx <- lm(LNOx ~ . ,data = NOxEmissions))
 plot(lmNOx) #->  indication of 1 outlier

 M.NOx <- MASS::rlm(LNOx ~ . , data = NOxEmissions)
 ## M-estimation works
 ## whereas  MM-estimation fails:
 try(MM.NOx <- MASS::rlm(LNOx ~ . , data = NOxEmissions, method = "MM"))
 ## namely because S-estimation fails:
 try(lts.NOx <- ltsReg(LNOx ~ . , data = NOxEmissions))
 try(lmR.NOx <- lmrob (LNOx ~ . , data = NOxEmissions))

Run the code above in your browser using DataLab