File: phosphor.Rd

package info (click to toggle)
robustbase 0.99-4-1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,552 kB
  • sloc: fortran: 3,245; ansic: 3,243; sh: 15; makefile: 2
file content (33 lines) | stat: -rw-r--r-- 949 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
\name{phosphor}
\alias{phosphor}
\docType{data}
\title{Phosphorus Content Data}
\description{
  This dataset investigates the effect from inorganic and organic
  Phosphorus in the soil upon the phosphorus content of the corn grown
  in this soil, from Prescott (1975).
}
\usage{data(phosphor, package="robustbase")}
\format{
  A data frame with 18 observations on the following 3 variables.
  \describe{
    \item{\code{inorg}}{Inorganic soil Phosphorus}
    \item{\code{organic}}{Organic soil Phosphorus}
    \item{\code{plant}}{Plant Phosphorus content}
  }
}
\source{
 P. J. Rousseeuw and A. M. Leroy (1987)
 \emph{Robust Regression and Outlier Detection.} Wiley, p.156, table 24.
}
\examples{
data(phosphor)
plot(phosphor)
summary(lm.phosphor <- lm(plant ~ ., data = phosphor))
summary(lts.phosphor <- ltsReg(plant ~ ., data = phosphor))

phosphor.x <- data.matrix(phosphor[, 1:2])
cPh <- covMcd(phosphor.x)
plot(cPh, "dd")
}
\keyword{datasets}