| rownames | block | N | P | K | yield |
|---|---|---|---|---|---|
| 1 | 1 | 0 | 1 | 1 | 49.5 |
| 2 | 1 | 1 | 1 | 0 | 62.8 |
| 3 | 1 | 0 | 0 | 0 | 46.8 |
| 4 | 1 | 1 | 0 | 1 | 57.0 |
| 5 | 2 | 1 | 0 | 0 | 59.8 |
| 6 | 2 | 1 | 1 | 1 | 58.5 |
skalenniveau2
Question
Betrachten Sie den Auszug aus dem Datensatz npk. Der Datensatz hat folgenden Titel: Classical N, P, K Factorial Experiment.
Hier folgt eine Beschreibung des Datensatzes:
BEGINN BESCHREIBUNG DES DATENSATZES
<!DOCTYPE html>| npk | R Documentation |
Classical N, P, K Factorial Experiment
Description
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.
Usage
npk
Format
The npk data frame has 24 rows and 5 columns:
-
block -
which block (label 1 to 6).
-
N -
indicator (0/1) for the application of nitrogen.
-
P -
indicator (0/1) for the application of phosphate.
-
K -
indicator (0/1) for the application of potassium.
-
yield -
Yield of peas, in pounds/plot (the plots were (1/70) acre).
Source
Imperial College, London, M.Sc. exercise sheet.
References
Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth edition. Springer.
Examples
options(contrasts = c("contr.sum", "contr.poly"))
npk.aov <- aov(yield ~ block + N*P*K, npk)
npk.aov
summary(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)
ENDE BESCHREIBUNG DES DATENSATZES
Welches Skalenniveau hat die Variable block?
Wählen Sie aus dieser Liste das Skalenniveau aus, das am besten passt:
integer, numeric, binary, ordered factor, factor, character, date, logical
Hinweis: Geben Sie den Namen des Skalenniveaus exakt so ein, wie in der Liste ersichtlich, da ansonsten die Eingabe u.U. nicht als korrekt gewertet werden kann.
Solution
Das Skalenviveau der Variablen block lautet integer.
Aufgabenname: skalenniveau2
Meta-information
exname: skalenniveau2 extype: string expoints: 1 exsolution: integer exshuffle: true categories: - variable-levels