R Dataset / Package MASS / npk
Classical N, P, K Factorial Experiment
A classical N, P, K (nitrogen, phosphate, potassium) factorial experiment on the growth of peas conducted on 6 blocks. Each half of a fractional factorial design confounding the NPK interaction was used on 3 of the plots.
npk data frame has 24 rows and 5 columns:
which block (label 1 to 6).
indicator (0/1) for the application of nitrogen.
indicator (0/1) for the application of phosphate.
indicator (0/1) for the application of potassium.
Yield of peas, in pounds/plot (the plots were (1/70) acre).
This dataset is also contained in R 3.0.2 and later.
Imperial College, London, M.Sc. exercise sheet.
Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth edition. Springer.
options(contrasts = c("contr.sum", "contr.poly")) npk.aov <- aov(yield ~ block + N*P*K, npk) npk.aov summary(npk.aov) alias(npk.aov) coef(npk.aov) options(contrasts = c("contr.treatment", "contr.poly")) npk.aov1 <- aov(yield ~ block + N + K, data = npk) summary.lm(npk.aov1) se.contrast(npk.aov1, list(N=="0", N=="1"), data = npk) model.tables(npk.aov1, type = "means", se = TRUE)
Dataset imported from https://www.r-project.org.
From Around the Site...
|Title||Authored on||Content type|
|R Dataset / Package Ecdat / Males||March 9, 2018 - 1:06 PM||Dataset|
|R Dataset / Package wooldridge / corn||March 9, 2018 - 1:06 PM||Dataset|
|cars||February 26, 2017 - 11:28 AM||Dataset|
|R Dataset / Package lme4 / Pastes||March 9, 2018 - 1:06 PM||Dataset|
|R Dataset / Package Stat2Data / Diamonds2||March 9, 2018 - 1:06 PM||Dataset|