Description Details Author(s) References See Also Examples
Single item and composite pesticide residue measurements of fifteen commodity-pesticide combinations plus analytical tools.
Package: | pesticides |
Type: | Package |
Version: | 0.1 |
Date: | 2010-11-17 |
License: | GPL-3 |
LazyLoad: | yes |
David M Diez
Maintainer: David M Diez <david.m.diez@gmail.com>
United States Department of Agriculture Pesticide Data Program (www.ams.usda.gov/science/pdp/).
United States Environmental Protection Agency (http://www.epa.gov/).
National Food Administration of Sweden (http://www.slv.se/en-gb/) (http://www.slv.se/upload/dokument/rapporter/kemiska/bekampningsmedel/slvrapp12_2000_pesticide_residues.pdf).
apple
, peach
, pear
, pepper
, cor2icc
, cdfDist
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 | #=====> cor2icc <=====#
data(apple)
pest <- unique(apple$pesticide)
icc <- rep(-1, length(pest))
for(i in 1:length(pest)){
these <- apple$pesticide == pest[i]
r <- cor(apple$comp[these], apple$ss[these])
icc[i] <- cor2icc(r, 10,"within")
}
names(icc) <- pest
icc
#=====> cdfDist <=====#
par(mfrow=1:2)
F1 <- seq(0.001, 0.999, 0.001)[-sample(999, 300)]
x1 <- exp(quantile(rnorm(10000, 0.5, sd=0.5), F1))
F2 <- seq(0.001, 0.999, 0.001)[-sample(999, 300)]
x2 <- qchisq(F2, mean(x1))
hold <- cdfDist(x1, F1, x2, F2)
plot(hold)
summary(hold)
F1 <- seq(0.001, 0.999, 0.001)[-sample(999, 300)]
x1 <- exp(quantile(rnorm(10000, 0.5, sd=0.5), F1))
F2 <- seq(0.001, 0.999, 0.001)[-sample(999, 300)]
x2 <- qchisq(F2, mean(x1)+1)
hold <- cdfDist(x1, F1, x2, F2)
plot(hold)
summary(hold)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.